superset_sqllab_format_sql
Format a SQL query for better readability by applying standard formatting rules via the SQL Lab API. Improves query structure for easier review and editing.
Instructions
Format a SQL query for better readability
Makes a request to the /api/v1/sqllab/format_sql endpoint to apply standard formatting rules to the provided SQL query.
Args: sql: SQL query to format
Returns: A dictionary with the formatted SQL
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": {
"sql": "<sql>"
},
"name": "superset_sqllab_format_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |