explain_query
Analyze SQL query performance by generating an estimated execution plan without executing the query. Understand query behavior and indexing needs safely.
Instructions
Generates an estimated execution plan (SHOWPLAN_XML) for a SQL query without executing it.
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 statement to analyze (typically SELECT/UPDATE/INSERT/DELETE). | |
| environment | No | Optional environment name to target (prod, staging, etc). | |
| includePlanXml | No | If true (default), returns the raw SHOWPLAN XML. Set false for summary only. |