Get API usage
get_usageFree (needs an API key). Shows the plan, the calls used and left this month, and when the period ends. The account's current-month usage and quota. Read-only. Does not consume quota and does not send rate-limit headers. The period is the UTC calendar month.
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 |
|---|---|---|---|
| env | No | ||
| plan | Yes | ||
| used | Yes | ||
| limit | Yes | ||
| trial | No | ||
| keyClass | No | ||
| keyPrefix | Yes | ||
| periodEnd | Yes | ||
| remaining | Yes | ||
| contractVersion | Yes |