hub_usage
Report work cost per project and agent over a window, separating client-supplied metrics (seconds/tokens/money) from hub-measured spans and events to avoid mixing observed data with estimated rates.
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, since the hub cannot see them) 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 |