usage_rollup
Aggregates token spend, cache hit rate, cache write share, savings against uncached pricing, and cost per completed task at workspace, thread, or member scope.
Instructions
Spend, cache hit rate, cache write share, dollars saved against the uncached price, and cost per completed task. Scope is the workspace, or one thread, or one member. A completed task is a closed or archived thread that has not been tombstoned. Rates are parts per million of prompt tokens.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "usage_rollup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| member_id | No | ||
| thread_id | No | ||
| workspace_id | Yes |