Content is loading…
Render bar, line, pie, scatter, area, or doughnut charts from JSON data to a PNG URL.
render_chart#chart#graph#data visualization#bar chart#line chartGenerates a PNG chart image from JSON data and returns a public URL valid for 24 hours. Accepts chart type, title, axis labels, theme, and data as a JSON string of objects containing label/value or x/y coordinates. Supports multiple series and various formats including bar, line, pie, and scatter.
| Name | Type | Required | Description |
|---|---|---|---|
type | enum ("bar" | "line" | "pie" | "scatter" | "area" | "doughnut") | required | Chart type to render. |
data | string | required | JSON array of {label, value} for bar/pie/doughnut, or {x, y} for line/scatter/area, or an array of series {name, points:[{x,y}]} for multi-series line/scatter/area. Max 500 points. |
title | string | optional | Chart title shown at the top. |
xLabel | string | optional | X-axis label (axis charts only). |
yLabel | string | optional | Y-axis label (axis charts only). |
width | number | optional | PNG width px, 320–1600. Default 800. |
height | number | optional | PNG height px, 320–1200. Default 500. |
theme | enum ("light" | "dark") | optional | Color theme. Default light. |
{
"type": "bar",
"data": "[{\"label\":\"Q1\",\"value\":120},{\"label\":\"Q2\",\"value\":180},{\"label\":\"Q3\",\"value\":150},{\"label\":\"Q4\",\"value\":210}]",
"title": "Quarterly Sales",
"yLabel": "Units"
}{
"type": "line",
"data": "[{\"name\":\"2024\",\"points\":[{\"x\":1,\"y\":10},{\"x\":2,\"y\":25},{\"x\":3,\"y\":18},{\"x\":4,\"y\":32}]},{\"name\":\"2025\",\"points\":[{\"x\":1,\"y\":14},{\"x\":2,\"y\":30},{\"x\":3,\"y\":26},{\"x\":4,\"y\":41}]}]",
"title": "Monthly Signups",
"xLabel": "Month",
"yLabel": "Signups",
"theme": "dark"
}curl -X POST https://toolsy.my/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "render_chart",
"arguments": {
"type": "bar",
"data": "[{\"label\":\"Q1\",\"value\":120},{\"label\":\"Q2\",\"value\":180},{\"label\":\"Q3\",\"value\":150},{\"label\":\"Q4\",\"value\":210}]",
"title": "Quarterly Sales",
"yLabel": "Units"
}
}
}'Make 1200×630 OG or 1080×1080 social images with title, subtitle, and theme.
post_image_makerGenerate a PNG QR code from any text or URL — customise size, colors, error correction.
qr_codeQuery CSV data with SQL SELECT — aggregate, filter, group, and sort in-memory.
csv_sqlGenerate a free API key or set up an OAuth connector for Claude.ai.