ai_usage_log_stats
Get billing ledger KPIs including totals, per-model breakdown, 30-day trends, and error analysis for AI usage logs.
Instructions
Dashboard KPIs for the billing ledger: totals, per-model breakdown, 30-day timeseries, recent errors, derived metrics (cache hit rate, avg cost per billed doc, monthly €).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_usage_log_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | month | |
| connection | No | default | |
| tenant_code | No | Tenant slug. Derived from connection if omitted. |