Get account balance
get_accountRead the prepaid API wallet of the account this API key belongs to: the balance, the total added and spent, in pence. Free. Call it before a paid tool to check the balance covers it.
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_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| currency | Yes | The wallet currency of cost_pence and balance_after. | |
| cost_pence | Yes | What this call debited; 0 when it ran but was not charged, in whole wallet pence. | |
| balance_after | Yes | The API wallet balance after this call, in whole wallet pence. |