usage_stats
Track AI token usage and estimated USD costs from the local log. Filter by model, label, or date, and group results by day, model, or label.
Instructions
Report AI token usage and estimated USD cost (from the local usage log).
Filter by model/label/since_iso (ISO-8601). group_by ∈ day|model|label.
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": "usage_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| model | No | ||
| group_by | No | day | |
| since_iso | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| groups | No | ||
| totals | No | ||
| filters | No | ||
| group_by | No | ||
| call_count | No | ||
| error_type | No |