Generate chart
generate_chartRender a chart to a hosted image; returns a URL to embed in markdown as . Types: bar (grouped vertical), horizontal_bar (best for long category names or ranked lists), stacked_bar (part-to-whole across categories), line / area (trend over an ordered axis), pie / doughnut (share-of-total of ONE series).
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>",
"title": "<title>",
"labels": "<labels>",
"series": "<series>"
},
"name": "generate_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Pick the type that best fits the data. | |
| title | Yes | ||
| labels | Yes | Category labels (x axis; slice labels for pie/doughnut). | |
| series | Yes | One or more series; each values array aligns with labels. pie/doughnut use the first series only. | |
| valueSuffix | No | e.g. '%' or null. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| error | No |