Skip to main content
Glama
justmytwospence

ynab-mcp

Update Month Category Budget

update_month_category

Allocate money to YNAB budget categories by updating assigned amounts for specific months. Modify category budgets to match financial plans.

Instructions

[1 API call] Update the budgeted/assigned amount for a category in a specific month. This is how you allocate money to categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used
monthYesMonth in YYYY-MM-DD format (first of month) or 'current'
category_idYesThe category ID
budgetedYesAmount to budget/assign in dollars (e.g., 500.00)

Implementation Reference

  • Registration and handler implementation of the 'update_month_category' tool.
    server.registerTool("update_month_category", {
      title: "Update Month Category Budget",
      description: "[1 API call] Update the budgeted/assigned amount for a category in a specific month. This is how you allocate money to categories.",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
        month: z.string().describe("Month in YYYY-MM-DD format (first of month) or 'current'"),
        category_id: z.string().describe("The category ID"),
        budgeted: z.number().describe("Amount to budget/assign in dollars (e.g., 500.00)"),
      },
      annotations: { readOnlyHint: false },
    }, async ({ budget_id, month, category_id, budgeted }) => {
      try {
        const response = await getClient().categories.updateMonthCategory(budget_id, month, category_id, {
          category: { budgeted: dollarsToMilliunits(budgeted) },
        });
        const c = response.data.category;
        return textResult(`Updated "${c.name}" for ${month}: Budgeted ${formatCurrency(c.budgeted)}`);
      } catch (e: any) {
        return errorResult(e.message);
      }
    });
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotation 'readOnlyHint: false' already indicates this is a mutation tool. The description adds minimal behavioral context beyond this—it mentions '[1 API call]' which hints at performance characteristics, but doesn't disclose side effects, permissions needed, error conditions, or what happens to existing budgeted amounts. For a mutation tool, more behavioral details would be helpful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero waste. The first sentence states the action and scope, the second explains the purpose. Both sentences earn their place by providing essential information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and minimal annotations, the description is adequate but incomplete. It covers the basic purpose and scope, but lacks details about return values, error handling, or behavioral constraints. Given the complexity of budget updates, more context would help the agent use this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all parameters are documented in the schema. The description adds no additional parameter semantics beyond what's in the schema—it doesn't explain relationships between parameters (e.g., how 'budget_id' interacts with 'month') or provide examples. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Update the budgeted/assigned amount'), the resource ('for a category in a specific month'), and the purpose ('This is how you allocate money to categories'). It distinguishes itself from siblings like 'update_category' (which likely updates category metadata) by focusing on month-specific budget allocation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for budget allocation to categories in specific months, but doesn't explicitly state when to use this tool versus alternatives like 'update_category' or 'get_month_category'. No prerequisites or exclusions are mentioned, leaving the agent to infer context from the tool name and description alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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