Render chart
render_chartDraws given numbers (e.g. from an analytics result) as a replient.ai chart: line, area, bar, stacked bar, horizontal bar, donut or KPI tiles. MCP Apps clients show it inline; every client also gets a text table. Reads no data itself.
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>",
"series": "<series>"
},
"name": "render_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | line/area: trend. bar: compare (series grouped). stacked_bar: parts of a total. horizontal_bar: rank up to 50 categories. donut: share of a whole (over 6 slices fold into "Other"). kpi: up to 6 headline tiles. | |
| title | Yes | What the chart shows, e.g. "Comments per day". | |
| labels | No | X-axis or category labels; ISO dates are localised. Optional for kpi. | |
| locale | No | BCP 47, e.g. "de-AT". Default: the reader's locale. | |
| series | Yes | 1-6 series (kpi: one per tile; donut: exactly one). | |
| source | No | Footnote naming the data source and period. | |
| currency | No | ISO 4217 code for valueFormat "currency", e.g. "EUR". | |
| subtitle | No | Brand, period or filter. | |
| valueFormat | No | percent: 42.5 = 42.5 %. duration: seconds. currency: set currency. | number |