create_pie_chart
Generate pie or donut charts from numeric values with customizable labels, colors, and percentage annotations. Supports SVG and PNG output.
Instructions
Create a pie / donut chart.
Args: values: Numeric values (proportions) labels: Slice labels (optional) title: Chart title palette: Color palette: default, vibrant, pastel, monochrome show_percent: Show percentage labels on slices output: 'svg' for inline SVG, '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_pie_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | ||
| labels | No | ||
| title | No | Pie Chart | |
| palette | No | default | |
| show_percent | No | ||
| output | No | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |