trace_token_cost
Calculate total token cost for MCP tool call traces by summing input and output tokens. Provide a run_id to sum for a specific run, or omit it to aggregate the entire trace file.
Instructions
Sum input and output tokens. Omit run_id to sum the whole file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |