create_chart
Generate bar, line, scatter, pie, or heatmap charts from JSON data using Matplotlib. Specify chart type, title, labels, and output path to visualize your data.
Instructions
Generate charts (bar, line, scatter, pie, heatmap) from data using Matplotlib
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"output": "<output>",
"data": "<data>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Chart data as JSON | |
| type | Yes | Chart type | |
| title | No | Chart title | |
| output | Yes | Output file path (without extension) | |
| xlabel | No | X-axis label | |
| ylabel | No | Y-axis label |