Get the credit balance
get_creditsGet the organization's credit balance: credits remaining, credits per billing cycle, and when the cycle resets. Free. Call it before a large run to check that the credits cover it. The balance can lag by up to 60 seconds.
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_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perCycle | Yes | Credits granted per billing cycle. Null on the free tier. | |
| remaining | Yes | Credits left in the organization. | |
| cycleResetsAt | Yes | When the billing cycle ends and the credits reset (ISO 8601). Null on the free tier. |