Explain
explainAnalyze SQL query performance by retrieving the execution plan without executing the query. Identify bottlenecks and optimize queries safely.
Instructions
Get query execution plan without running the query.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query to analyze | |
| params | No | Optional parameters for the query | |
| database | No | Database key (format: "type:name") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |