Skip to main content
Glama
justmytwospence

ynab-mcp

list_money_movement_groups

Retrieve all money movement groups for a YNAB budget to analyze transfers and categorize financial flows.

Instructions

[1 API call] List all money movement groups for a budget

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used

Implementation Reference

  • Implementation of the 'list_money_movement_groups' tool, which fetches and lists money movement groups for a YNAB budget using the money movements client.
    server.registerTool("list_money_movement_groups", {
      title: "List Money Movement Groups",
      description: "[1 API call] List all money movement groups for a budget",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
      },
      annotations: { readOnlyHint: true },
    }, async ({ budget_id }) => {
      try {
        const response = await getMoneyMovementsClient().getMoneyMovementGroups(budget_id);
        const groups = response.data.money_movement_groups;
        if (!groups || groups.length === 0) return textResult("No money movement groups found.");
        const lines = groups.map((g) =>
          `- ${g.month}: ${g.note ?? "No note"} (Created: ${g.group_created_at}) [ID: ${g.id}]`
        );
        return textResult(`Money Movement Groups (${groups.length}):\n${lines.join("\n")}`);
      } catch (e: any) {
        return errorResult(e.message);
      }
    });

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/justmytwospence/ynab-mcp'

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