Get Wallets
get_walletsRetrieve all wallets accessible to the authenticated user by providing a JWT token. This tool lists wallets for personal finance management and expense tracking.
Instructions
List all wallets accessible to the authenticated user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | JWT token returned by the login tool or derived from EMAIL/PASSWORD environment variables |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallets | Yes |
Implementation Reference
- src/server.js:340-358 (registration)Registration of the get_wallets tool with its name, input/output schema, and handler
server.registerTool( 'get_wallets', { title: 'Get Wallets', description: 'List all wallets accessible to the authenticated user.', inputSchema: tokenArgument, outputSchema: { wallets: z.array(z.record(z.any())) } }, async ({ token }) => { try { const wallets = (await runWithClient(token, client => client.getWallets())) ?? []; return formatSuccess({ wallets }); } catch (error) { return formatError(error instanceof Error ? error : new Error(String(error))); } } );