get_balance
Retrieve available, blocked, and automatically invested balances for a bank account on Open Finance Brasil using CPF, bank, and account ID.
Instructions
Returns the available, blocked, and automatically invested balance of a specific bank account on Open Finance Brasil.
Args: subject_id: User's CPF. bank: Identifier of the participating bank. account_id: Account ID returned by list_accounts. ctx: MCP request context, providing access to shared adapters.
Returns: The account's current balance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subject_id": "<subject_id>",
"bank": "<bank>",
"account_id": "<account_id>"
},
"name": "get_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | ||
| account_id | Yes | ||
| subject_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | ||
| balance | Yes |