create_bar_chart
Generate bar charts from numeric data with customizable labels, colors, and orientation. Output as SVG inline or PNG file.
Instructions
Create a bar chart.
Args: values: Numeric values for each bar labels: Category labels (optional, auto-generated if omitted) title: Chart title xlabel: X-axis label ylabel: Y-axis label palette: Color palette: default, vibrant, pastel, monochrome horizontal: If True, render horizontal bars output: 'svg' for inline SVG string, 'png' for file path
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": {
"values": "<values>"
},
"name": "create_bar_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | ||
| labels | No | ||
| title | No | Bar Chart | |
| xlabel | No | ||
| ylabel | No | ||
| palette | No | default | |
| horizontal | No | ||
| output | No | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |