Explain Query
explain_queryAnalyze SQL query performance by retrieving the execution plan. Identify bottlenecks and optimize queries.
Instructions
获取SQL查询的执行计划,用于分析查询性能
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 | 需要分析的SQL查询语句 | |
| database | No | 可选,指定数据库 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |