get_bank_accounts
Retrieve bank account details and balances from ABANCA using secure OpenBanking API access to view financial information.
Instructions
Retrieves a list of bank accounts and their balances.
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_bank_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/Server.ts:33-50 (handler)Registration and handler implementation for the get_bank_accounts tool.
private setupTools() { this.server.tool( "get_bank_accounts", "Retrieves a list of bank accounts and their balances.", {}, async () => { await this.ensureAuthenticated(); try { const accounts = await this.apiClient.getAccounts(); return { content: [{ type: "text", text: JSON.stringify(accounts, null, 2) }] }; } catch (error: any) { return { isError: true, content: [{ type: "text", text: `Error fetching accounts: ${error.message}` }] }; }