Get credit balance
get_balanceCredits remaining, used and reset date for this workspace.
Answers "how many credits are left" without pricing a run. Returns the spendable balance, this billing period's usage against quota, and when credits next reset. What a specific run will cost, and whether the balance covers it, comes from estimate_run.
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_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| used | No | ||
| quota | No | ||
| percent | No | ||
| next_step | No | ||
| plan_tier | No | ||
| remaining | No | ||
| period_end | No | ||
| period_start | No |