Principal wallet
get_walletCheck the prepaid USD wallet of the principal you act for. Use it before get_quote or purchase to confirm funds, and after handing a top-up link to your principal to see it credited. Read-only. Returns balance, available funds (balance minus pending holds), open (unpaid) top-up links, top-ups awaiting confirmation, recent top-ups and recent ledger entries of the wallet of the principal you act for. Shared by all of the principal's agents. Amounts in minor units. topups_awaiting_confirmation: a payment was reported for these and is being confirmed with the payment provider; never send their links again, the balance updates once it is confirmed. frozen and debt: a top-up reversed by the payment provider (refund, cancellation, chargeback) is taken back from the balance; what the balance could not cover is a debt that blocks purchases until a top-up settles it. principal.partner_id: the partner the principal was attributed to at registration, if any.
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_wallet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent top-ups and ledger entries to return, 1-100 (default 20) | |
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| principal_id | No | The principal you act for (or X-Principal-Id header) |