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.
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}` }] }; }