superset_chart_create
Create a new Superset chart by specifying its name, dataset, visualization type, and parameters. Returns the created chart details, including its ID.
Instructions
Create a new chart in Superset
Makes a request to the /api/v1/chart/ POST endpoint to create a new visualization.
Args: slice_name: Name/title of the chart datasource_id: ID of the dataset or SQL table datasource_type: Type of datasource ('table' for datasets, 'query' for SQL) viz_type: Visualization type (e.g., 'bar', 'line', 'pie', 'big_number', etc.) params: Visualization parameters including metrics, groupby, time_range, etc.
Returns: A dictionary with the created chart information including its ID
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>",
"datasource_id": "<datasource_id>",
"datasource_type": "<datasource_type>",
"viz_type": "<viz_type>",
"params": "<params>"
},
"name": "superset_chart_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| viz_type | Yes | ||
| slice_name | Yes | ||
| datasource_id | Yes | ||
| datasource_type | Yes |