Get usage
get_usageUse this when the user asks how much was used or spent over a period. Returns calls, billed units, misses, errors and spend for each UTC day of the range, by product and by route. Without dates it covers the last 30 days; a range covers 90 days at most. A connection without full access sees only its own usage. Free.
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 |
|---|---|---|---|
| to | No | The last UTC day, as `YYYY-MM-DD`. A range covers at most 90 days. | |
| from | No | The first UTC day, as `YYYY-MM-DD`. Without `from` and `to`, the last 30 days, today included. | |
| apiKeyId | No | Only this key's usage. A key without full access reads only its own. |