explain_query_plan
Analyzes SQL query plans to flag full table scans, missing indexes, and high-cost operations, helping you diagnose slow queries before tuning or migration.
Instructions
Executes EXPLAIN QUERY PLAN on a SQL query and flags FULL TABLE SCANs, missing indexes, and high-cost operations.
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": {
"sqlQuery": "<sqlQuery>"
},
"name": "explain_query_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqlQuery | Yes | The SQL SELECT query to analyze | |
| tableName | No | Optional: specific table to focus analysis on |