get_usage
Get usage summary for a time period: call count, total seconds/minutes, and billed amount. Use for cost monitoring, capacity planning, and usage reporting by specifying look-back days.
Instructions
Get usage summary for a time period.
Returns aggregate stats: how many calls were made, total seconds
and minutes consumed, and total amount billed. Billing is
per-second, so total_seconds is the granular metric.
Useful for cost monitoring, capacity planning, and usage reporting.
Args: days: Look-back period in days (default 30, max 365). Use 1 for today's usage, 7 for the past week.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||