analyze_costs
Analyze Claude Code and Anthropic API token spend by scrubbing local transcripts and uploading usage metadata to return cost summaries with recoverable savings.
Instructions
Analyze your Claude Code / Anthropic API token spend. Sweeps your local
transcripts (or apilog JSONL files via apilog glob), scrubs identifiers
on your machine, sends usage metadata only to your configured Agent Cost
Lens server, and returns the cost summary with recoverable savings.
Dates are YYYY-MM-DD. Use preview_upload first to audit what gets sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| until | No | ||
| apilog | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |