mysql_explain
Analyze MySQL query performance by running EXPLAIN on SELECT statements, returning the execution plan and full-scan warnings to identify optimization opportunities.
Instructions
Run EXPLAIN on a SELECT statement to analyze query performance. Returns execution plan and full-scan warnings.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT statement to analyze | |
| database | No | Target database (optional) |