explain_query
Analyze SQL query execution plans using EXPLAIN to optimize performance. Supports SELECT, UPDATE, DELETE, INSERT, REPLACE statements with optional output formats.
Instructions
Analyze query execution plan using EXPLAIN. 한글: 쿼리 실행 계획, 쿼리 분석, EXPLAIN
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": {
"query": "<query>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to analyze (SELECT, UPDATE, DELETE, INSERT, REPLACE statements) | |
| database | No | Database name (optional, uses default if not specified) | |
| format | No | Output format: TRADITIONAL, JSON, or TREE (optional, default: TRADITIONAL) |