explain_query
Get estimated query plans for SQLite, PostgreSQL, MySQL, and MariaDB without running ANALYZE. Use to diagnose query performance safely.
Instructions
Get an estimated query plan on SQLite/PostgreSQL/MySQL/MariaDB; never ANALYZE.
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": {
"database": "<database>",
"sql": "<sql>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| database | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||