Create chart
create_chartRender media-kit-ready PNG, SVG or PDF charts from your analytics numbers with colour-blind-safe palettes, clean axes and direct value labels. Returns saved file paths and a preview image.
Instructions
Render a polished, media-kit-ready chart (PNG, SVG or PDF) from data you provide — typically numbers from the analytics tools. Uses a colour-blind-safe palette by default, thin marks, clean axes and direct value labels. Returns the saved file path(s) and a preview image.
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": {
"chart_type": "<chart_type>",
"labels": "<labels>",
"series": "<series>",
"title": "<title>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Light or dark background. | light |
| title | Yes | Chart title (the headline). | |
| width | No | Width in pixels. | |
| y_max | No | Force the value-axis maximum. | |
| y_min | No | Force the value-axis minimum. | |
| colors | No | Brand colours as hex, used in order for series (or donut slices). | |
| height | No | Height in pixels. | |
| labels | Yes | X-axis categories or dates. ISO dates (YYYY-MM-DD, YYYY-MM, YYYY) get smart date ticks. | |
| series | Yes | 1-8 data series. | |
| x_label | No | ||
| y_label | No | ||
| filename | No | Where to save. Bare names go to the output directory; absolute paths allowed. The extension (.png/.svg/.pdf) picks the format. Default: <title>-<timestamp>.png. | |
| subtitle | No | Smaller line under the title, e.g. the period. | |
| highlight | No | For a single-series bar chart: the label to emphasise; other bars are muted. | |
| chart_type | Yes | line/area: trends over time. bar: compare categories (multiple series = grouped). horizontal_bar: ranked lists with long labels (countries, videos, traffic sources). stacked_bar: parts of a total per category. donut: share of one whole (max 6 slices). | |
| font_family | No | Installed font name, e.g. 'Montserrat'. Falls back if missing. | |
| show_values | No | Value labels: auto (bars when few, line end points), all, last, or none. | auto |
| source_note | No | Footnote, e.g. 'Source: YouTube Analytics, Aug–Oct 2026'. | |
| value_format | No | How numbers print: compact (12.3K), percent (values already 0-100), duration (values in seconds -> m:ss), currency, number, or auto. | auto |
| extra_formats | No | Also save these formats next to the main file, e.g. ['svg'] for print. | |
| currency_symbol | No | $ | |
| include_preview | No | Return a small PNG preview so you can check the chart visually. | |
| transparent_background | No | Transparent PNG/SVG background for placing on designed pages. |