explain_query
Explain SQL queries and simulate hypothetical indexes to identify performance bottlenecks.
Instructions
EXPLAIN a SQL query, optionally with hypothetical indexes
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": {
"sql": "<sql>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | Database id from list_databases | |
| sql | Yes | ||
| analyze | No | ||
| hypothetical_indexes | No |