Get API usage
get_usageMonitor current billing-period API usage and limits, including API calls, AI generation calls, overage calls, and tier limits, to avoid unexpected overages.
Instructions
Show the current billing-period usage and limits for the configured API key: API calls, AI generation calls, overage calls, and the tier limits.
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 |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | ||
| limits | Yes | ||
| period | Yes | ||
| apiTier | Yes | ||
| keyType | Yes |