query_metric
Retrieves governed production and dealer-sales metrics for a date range, scoped by site or region and grouped by dimensions, with role-based access controls.
Instructions
Query a metric for days from start_day to end_day (YYYY-MM-DD, both included).
Production metrics are scoped by site and group by: site, machine_id, shift, production_day. Fleet hours metrics (engine on hours, utilization) are scoped by site and group by the same four. Fleet alert metrics are scoped by site and group by: site, machine_id, severity, production_day. Dealer sales metrics are scoped by region and group by: region, dealer_id, product_line, sale_day. site or region limits the query to one of them. The caller's role limits what can be read.
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": {
"metric": "<metric>",
"start_day": "<start_day>",
"end_day": "<end_day>"
},
"name": "query_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| metric | Yes | ||
| region | No | ||
| end_day | Yes | ||
| group_by | No | ||
| start_day | Yes |