explain_query
Analyze SQL or TQL execution plans to inspect query performance, optionally execute for actual metrics, and reveal verbose per-partition scan and index-pruning statistics.
Instructions
Analyze SQL or TQL query execution plan.
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 | Original SQL query or full TQL EVAL (...) <PromQL> statement. Do not include EXPLAIN or ANALYZE wrappers. | |
| analyze | No | Execute and show actual metrics | |
| verbose | No | Show detailed per-partition scan metrics; combine with analyze=true to reveal index-pruning counters (rg_bloom_filtered, rg_inverted_filtered, rg_minmax_filtered, rows_bloom_filtered, rows_inverted_filtered) |