explain_metric_query
Compile a metric query into governed SQL without running it. Inspect the generated query to verify metrics, dimensions, filters, and sorting before execution.
Instructions
Compile a metric query and return the governed SQL without running it.
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": {
"metrics": "<metrics>"
},
"name": "explain_metric_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| limit | No | ||
| start | No | ||
| filters | No | ||
| metrics | Yes | ||
| order_by | No | ||
| descending | No | ||
| dimensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||