explain_query
Analyze SQL query performance by retrieving its execution plan.
Instructions
Get the query execution plan (EXPLAIN) for a SQL query.
Args: database_id: The ID of the database query: SQL query to explain
Returns: Query execution plan
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>",
"query": "<query>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |