token_usage
Retrieve token and cost totals from OpenTelemetry traces, and aggregate usage across all runs when no trace ID is provided.
Instructions
Token and cost totals. Omit trace_id to aggregate across all runs.
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": "token_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |