create_chart_block
Add bar, line, pie, scatter, area, column, funnel, radar, or table chart blocks to a dashboard. Configure source table, axes, and aggregations to visualize data.
Instructions
Create a chart block (bar, line, pie, scatter, area, column, funnel, radar, table) and add it to a dashboard
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": {
"app_token": "<app_token>",
"dashboard_id": "<dashboard_id>",
"chart_type": "<chart_type>",
"table_id": "<table_id>",
"x_axis_field": "<x_axis_field>",
"y_axis_fields": "<y_axis_fields>"
},
"name": "create_chart_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_token | Yes | Base app token | |
| dashboard_id | Yes | Dashboard block ID | |
| chart_type | Yes | Type of chart | |
| table_id | Yes | Source table ID | |
| view_id | No | Optional view ID to filter data | |
| x_axis_field | Yes | Field name for X axis | |
| y_axis_fields | Yes | Y axis configuration (can have multiple) | |
| title | No | Chart title | |
| show_legend | No | Show legend | |
| colors | No | Custom colors (hex codes) |