create_chart
Generate visual charts from datasets by specifying visualization type, data source, and parameters for Apache Superset dashboards.
Instructions
Create a new chart.
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": {
"slice_name": "<slice_name>",
"viz_type": "<viz_type>",
"datasource_id": "<datasource_id>"
},
"name": "create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slice_name | Yes | Chart name | |
| viz_type | Yes | Visualization type (e.g. 'bar', 'line', 'pie', 'table', 'big_number_total') | |
| datasource_id | Yes | ID of the dataset to use | |
| datasource_type | No | 'table' for datasets (default) | table |
| params | No | JSON string of chart parameters/query context | {} |
| description | No | Optional chart description | |
| dashboards | No | List of dashboard IDs to add the chart to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||