-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
Contact Information
No response
MaxKB Version
v1.10.8-lts
Problem Description
Although this tool has been configured on AI Chat and the prompt words also require the use of this tool, the tool of the Quickchart mcp server or antvis/mcp-server-chart will not be called. Besides, the tools of dbhub work fine. And the mcp server work fine on cherry studio.
Steps to Reproduce
LLM
Qwen3-32B
System role
Create chart through the mcp server tool.
Prompt
{{Start.question}}
Question
{
"success": true,
"data": {
"rows": [
{
"bqsdr": "10003",
"total_orders": 11
},
{
"bqsdr": "10001",
"total_orders": 11
},
{
"bqsdr": "10000",
"total_orders": 9
},
{
"bqsdr": "10008",
"total_orders": 9
},
{
"bqsdr": "10010",
"total_orders": 7
}
],
"count": 5
}
}
Response
Okay, let's see. The user provided some data with bqsdr codes and total orders. They want a chart generated. The available tools include bar, column, pie, etc. Since the data is comparing different categories (bqsdr) with their order counts, a bar or column chart would be suitable. The data has 'bqsdr' as categories and 'total_orders' as values. The generate_bar_chart function can take category and value fields. Let me check the parameters: data needs category and value. The example uses 'category' and 'value' keys. So I'll map 'bqsdr' to category and 'total_orders' to value. Also, set titles for axes. Maybe a bar chart is better for horizontal comparison. Let's use generate_bar_chart with the data provided.
The expected correct result
Call the tool and return the link.
Related log output
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels