chart_from_json
Create bar, line, pie, doughnut, radar, polar, or area charts from a JSON array by using the first string field as labels and numeric fields as datasets.
Instructions
RECOMMENDED — the easiest way to create a chart. Pass a JSON array of objects; the first string field becomes labels, every numeric field becomes a dataset. Example: [{"name":"Python","score":28},{"name":"JS","score":21}]. chart_type: bar, line, pie, doughnut, radar, polar, or area.
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": {
"json_data": "<json_data>"
},
"name": "chart_from_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| json_data | Yes | ||
| chart_type | No | bar |