explain_query
Retrieve the MySQL EXPLAIN execution plan for a SELECT statement to diagnose and optimize query performance.
Instructions
Get MySQL query execution plan (EXPLAIN) for a SELECT statement.
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 |
|---|---|---|---|
| sql | Yes | The SQL statement to explain. | |
| params | No | Optional query parameters. | |
| database | No | Optional database name. |