usage_stats
Get token usage statistics and estimated API costs for Claude Code, grouped by model, project, or day over a chosen period. No API key required.
Instructions
Get Claude Code token usage statistics and estimated API costs. Shows consumption by model, project, or day for a given period. No API key required.
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": "usage_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period to query (default: today) | |
| group_by | No | Group results by model, project, day, cache analytics, or session anomalies (default: model) |