explain_query
Run EXPLAIN ANALYZE on SQL queries to reveal execution plans, index usage, and cost estimates for performance analysis.
Instructions
Run EXPLAIN ANALYZE on a SQL query to show the execution plan. Helps understand performance characteristics like index usage, sequential scans, and estimated costs.
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 SELECT query to explain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |