superset_create_chart
Create a chart in Apache Superset by specifying the dataset, visualization type, and parameter JSON. Configure metrics, grouping, and time range to produce the desired data visualization.
Instructions
Create a new chart. params must be a JSON string: object with keys like metrics, groupby, order_desc, row_limit, time_range, etc. depending on viz_type (e.g. table, big_number, line, bar, pie).
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": {
"dataset_id": "<dataset_id>",
"viz_type": "<viz_type>",
"slice_name": "<slice_name>",
"params": "<params>"
},
"name": "superset_create_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| viz_type | Yes | ||
| dataset_id | Yes | ||
| slice_name | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |