countinghouse_usage_report
Reports call counts, server calls, bytes read and returned, and estimated token use by tool, server, scenario, or module for a selected time range.
Instructions
What this countinghouse has done for you: per tool, server, scenario or module, the calls, the server calls made for them, and the bytes read from servers and returned to the model, from this process and, where a usage directory is kept, earlier ones that wrote to it. On a shared runtime, the calls of this session only; in a session's own ch-local runtime, this session's calls since that runtime started. countinghouse-usage --usageDir <the usage directory> in a terminal covers every session that writes there. Token columns are an estimate (utf8 bytes / 4).
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": "countinghouse_usage_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | a day (YYYY-MM-DD), an ISO time, a duration back from now (30m, 24h, 7d), or "all" (from the first record); absent: the last 31 days for a plain key, everything recorded for an admin | |
| until | No | a day (YYYY-MM-DD, through its end), an ISO time, or a duration back from now; absent: now | |
| groupBy | No | what each row counts: a tool (the default), a server, a scenario (the top-level module a call was made to), or a module |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| groups | Yes | ||
| method | Yes | ||
| source | Yes | ||
| totals | Yes | ||
| window | Yes | ||
| groupBy | Yes | ||
| profile | Yes | ||
| standIn | No | ||
| daysOmitted | Yes | ||
| groupsOmitted | Yes |