explain_query
Analyze SQL execution plans using EXPLAIN and receive detailed interpretations to optimize query performance.
Instructions
分析 SQL 执行计划,返回 EXPLAIN 结果并给出中文解读。
Parameters: sql: 要分析的 SELECT 语句 format: traditional / json
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 | ||
| format | No | traditional | |
| params | No | ||
| database | No |