compare_query_plans
Compare two saved execution plans for the same query hash to identify performance differences. Requires at least two persisted explain results with matching queryHash.
Instructions
比较两个保存的执行计划。⚠️ 需先对相同 queryHash 跑 ≥2 次 explain_query_with_advice({persist:true})。否则返回 "need at least 2 entries with the same queryHash"。
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": {
"queryHash": "<queryHash>",
"entryA": "<entryA>",
"entryB": "<entryB>"
},
"name": "compare_query_plans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entryA | Yes | entry id A | |
| entryB | Yes | entry id B | |
| queryHash | Yes | 要比较的 queryHash(query 文本 hash) |