query_kpi
Compute a KPI over an inclusive date range with optional dimension grouping, time grain, and value filters, returning result rows plus generated SQL for transparency.
Instructions
Compute a KPI for an inclusive date range (YYYY-MM-DD), optionally grouped by catalog dimensions and/or a time grain ('day', 'week', 'month') and filtered by dimension values, e.g. filters={"queue": ["billing"]}. Returns rows plus the generated SQL for transparency.
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": {
"kpi": "<kpi>",
"start": "<start>",
"end": "<end>"
},
"name": "query_kpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| kpi | Yes | ||
| start | Yes | ||
| filters | No | ||
| group_by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||