Skip to main content
Glama
ferdhika31

Money Lover MCP Server

Get Categories

get_categories

Retrieve categories for a specific wallet in the Money Lover app to organize and manage financial transactions effectively.

Instructions

Retrieve categories for a specific wallet.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoriesYes

Implementation Reference

  • Core handler function in MoneyloverClient that performs the API POST request to fetch categories for a given wallet ID.
    async getCategories(walletId) {
      const form = new URLSearchParams();
      form.set('walletId', ensureString(walletId, 'walletId'));
      return this.#post('/category/list', {
        body: form.toString(),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
      });
    }
  • Input and output schema definitions for the get_categories tool using Zod, including optional token and required walletId.
    inputSchema: {
      ...tokenArgument,
      walletId: z.string().min(1).describe('Wallet identifier')
    },
    outputSchema: {
      categories: z.array(z.record(z.any()))
    }
  • src/server.js:360-381 (registration)
    MCP tool registration call for 'get_categories', including schema definitions, description, and wrapper handler that delegates to MoneyloverClient.getCategories after token resolution.
    server.registerTool(
      'get_categories',
      {
        title: 'Get Categories',
        description: 'Retrieve categories for a specific wallet.',
        inputSchema: {
          ...tokenArgument,
          walletId: z.string().min(1).describe('Wallet identifier')
        },
        outputSchema: {
          categories: z.array(z.record(z.any()))
        }
      },
      async ({ token, walletId }) => {
        try {
          const data = (await runWithClient(token, client => client.getCategories(walletId))) ?? [];
          return formatSuccess({ categories: data });
        } catch (error) {
          return formatError(error instanceof Error ? error : new Error(String(error)));
        }
      }
    );

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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