get_agent_kennzahlen
Read the daily agent metrics snapshot (runs ok/failed, handoffs done/partial/failed/open >24h, agent todos completed, fitness green/red, tokens by type and model incl. cache read/write, cost in CHF from the price table, lab orders/reports and lead times where the lab module is on) for a date range, summed per day, week (ISO), month or year. Required: von, bis (YYYY-MM-DD, Europe/Zurich, inclusive). Optional: agent_id, ablauf (laborder|bericht|offerte|lead|plan|problem|sonstiges), kanal (takt|uebergabe|whatsapp|manuell…), kennzahl, gruppierung (tag|woche|monat|jahr, default tag), nach_modell (default false: token rows summed over models). Every number comes with belege (ids of runs, handoffs, todos, token rows) and the result states datenstand (latest erfasst_am). abgeleitet holds success rate, cache hit rate, mean lead time, cost and tokens per order. Read-only.
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": {
"von": "<von>",
"bis": "<bis>"
},
"name": "get_agent_kennzahlen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bis | Yes | Last day, YYYY-MM-DD, inclusive | |
| von | Yes | First day, YYYY-MM-DD (Europe/Zurich) | |
| kanal | No | Only this channel (e.g. takt, uebergabe, whatsapp, manuell) | |
| ablauf | No | Only this workflow type (e.g. laborder, bericht, offerte) | |
| agent_id | No | ID of the agent | |
| kennzahl | No | Only this metric name (e.g. fitness_fit) | |
| gruppierung | No | Period to sum per; default tag | |
| nach_modell | No | true splits token rows per model; default false |