hub_stats
Calculate session costs and outcomes per task, model, role, or day; measure attempts and accept/reject verdicts from journals and price tokens for fair comparison.
Instructions
What the sessions cost and what came of it, per task, model, role or day. Tokens are READ from the clients' own databases (hub sessions ingest), bound to the task each role was ordered to work on (the queue header's "task #"); attempts and accept/reject are MEASURED from the journal (VERDICT: lines); notional is the tokens at the OpenRouter list price of their day (hub price pull), the one way to compare a free tier with a paid key. The same files give the same numbers, byte for byte. A task's attempts: task:.
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": "hub_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | return everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`. | |
| task | No | one task: its attempts, each with its role, models, tokens and verdict | |
| check | No | prove every token is bound to a task, unbound, or a probe's | |
| group | No | rows per; default task | |
| since | No | "7d", "12h" or a date; default everything | |
| project | No |