Skip to main content
Glama
ferdhika31

Money Lover MCP Server

get_wallets

Retrieve all available wallets for authenticated users to manage personal finances and track expenses across multiple accounts.

Instructions

List all wallets accessible to the authenticated user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoJWT token returned by the login tool or derived from EMAIL/PASSWORD environment variables

Implementation Reference

  • The main handler function for the 'get_wallets' tool. It runs the client.getWallets() method via runWithClient and formats the result.
    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))); } }
  • Schema definition for the 'get_wallets' tool, including input (token) and output (wallets array).
    { title: 'Get Wallets', description: 'List all wallets accessible to the authenticated user.', inputSchema: tokenArgument, outputSchema: { wallets: z.array(z.record(z.any())) } },
  • src/server.js:340-358 (registration)
    Registration of the 'get_wallets' tool on the MCP server.
    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))); } } );
  • Helper method in MoneyloverClient that performs the API call to fetch wallets.
    async getWallets() { return this.#post('/wallet/list'); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ferdhika31/moneylover-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server