superset_dataset_get_or_create
Get an existing Apache Superset dataset for a table, or create a new physical dataset when none exists. Provide database ID, table name, and optional schema to locate or provision the dataset.
Instructions
Get an existing dataset or create a new one for a table.
If a dataset for the specified table already exists, returns it. If not, creates a new physical dataset.
Args: database_id: Database connection ID (from superset_database_list). table_name: Table name in the database. schema_name: Database schema (e.g. "public", "source"). If omitted, uses the DB default schema.
Returns: JSON string with the dataset details.
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": {
"database_id": "<database_id>",
"table_name": "<table_name>"
},
"name": "superset_dataset_get_or_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| database_id | Yes | ||
| schema_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |