superset_sqllab_estimate_query_cost
Estimate SQL query execution costs before running them to optimize database performance and resource allocation in Apache Superset.
Instructions
Estimate the cost of executing a SQL query
Makes a request to the /api/v1/sqllab/estimate endpoint to get approximate cost information for a query before executing it.
Args: database_id: ID of the database sql: SQL query to estimate schema: Optional schema name
Returns: A dictionary with estimated query cost metrics
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": "superset_sqllab_estimate_query_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | ||
| sql | Yes | ||
| schema | No |