mysql_explain_query
Shows the execution plan for SELECT queries to analyze performance and find missing indexes.
Instructions
Run EXPLAIN on a SELECT query to show the query execution plan. Use this to analyze query performance and identify missing 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": "mysql_explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A read-only SELECT query to EXPLAIN. Use the same SQL you would run in mysql |