explain
Analyze SQL query execution plans to identify optimization opportunities and improve database performance.
Instructions
Explain the query plan for a SQL query (EXPLAIN QUERY PLAN). Helps optimize queries.
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": {
"db": "<db>",
"sql": "<sql>"
},
"name": "explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Path to the .db or .sqlite file | |
| sql | Yes | SQL query to explain |