explain_query
Analyze SQL query performance by retrieving its execution plan. Optionally execute the query for deeper analysis.
Instructions
Get query execution plan to analyze performance
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": {
"query": "<query>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to explain | |
| analyze | No | Whether to execute the query (EXPLAIN ANALYZE) |