execute_sql
Run SQL queries on Apache Superset databases to retrieve and analyze data directly from your datasets.
Instructions
Execute a SQL query and return results.
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>",
"sql": "<sql>"
},
"name": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | ID of the database to query | |
| sql | Yes | SQL query to execute | |
| schema | No | Schema/database to run the query in | |
| limit | No | Maximum number of rows to return (default 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||