Skip to main content
Glama
justmytwospence

ynab-mcp

update_category_group

Modify the name of a budget category group in YNAB to reflect organizational changes or corrections.

Instructions

[1 API call] Update a category group's name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used
category_group_idYesThe category group ID
nameYesNew name (max 50 characters)

Implementation Reference

  • Registration and implementation handler for the update_category_group MCP tool.
    server.registerTool("update_category_group", {
      title: "Update Category Group",
      description: "[1 API call] Update a category group's name",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
        category_group_id: z.string().describe("The category group ID"),
        name: z.string().max(50).describe("New name (max 50 characters)"),
      },
      annotations: { readOnlyHint: false },
    }, async ({ budget_id, category_group_id, name }) => {
      try {
        const response = await getClient().categories.updateCategoryGroup(budget_id, category_group_id, {
          category_group: { name },
        });
        const g = response.data.category_group;
        return textResult(`Updated category group "${g.name}"\nID: ${g.id}`);
      } 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