Usage Statistics
get_usage_statsRetrieve token usage and costs for today, 7 days, 30 days, or all time to monitor resource consumption.
Instructions
Get usage statistics for a time period. Shows token counts and costs (when pricing configured).
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": "get_usage_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period for stats | today |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | ||
| period | Yes | ||
| totals | Yes | ||
| endDate | Yes | ||
| startDate | Yes | ||
| costByProvider | No |