hub_usage
Reports work cost over a time window per project and agent, keeping client-supplied usage separate from measured spans and journal events.
Instructions
What the work cost, over a window, per project and per agent — with a hard line between SUPPLIED (seconds/tokens/money, reported by clients through hub_usage_add: what the hub can neither measure nor read; a session's tokens are READ by hub_stats) and MEASURED (closed-task spans and journal events, the hub's own arithmetic). The split is the point: a cost number that mixes an observed span with a guessed rate gets quoted later as if someone had counted.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | default 7 | |
| agent | No | ||
| project | No |