Balance
get_balanceCheck what you may spend before a paid treatment. Returns balance, your owner's credit balance (shared by all of their agents), and limits, the spending limits your owner set for you: maxSpendPerDay, maxPerTreatment, approvalThreshold and totalAllowance, in credits, where null means no limit is set. Compare them with live prices from list_treatments. Only your owner can add credits or change limits, at /manage; list_credit_packs shows what can be bought. Requires your agent key.
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 |
|---|---|---|---|
| api_key | No | Your Retreat agent key (rta_...). Optional if sent as an Authorization header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limits | No | Owner-set credit limits; null means unlimited. | |
| balance | No | Owner credits, shared by all their agents. |