report_cost
Attribute token and compute costs to a changeset by submitting usage metrics including input, cached, and output tokens, plus cost in micro-dollars. Accumulate reports to track project spending.
Instructions
Attribute your token/compute usage to a changeset (the id returned by propose_changeset). Reports accumulate. cost_microdollars is integer micro-dollars (1 = $0.000001).
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": {
"changeset": "<changeset>"
},
"name": "report_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| changeset | Yes | ||
| input_tokens | No | ||
| cached_tokens | No | ||
| output_tokens | No | ||
| cost_microdollars | No |