Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Create a category

create_category
Destructive

Creates a new YNAB category in an existing category group, with optional goal target, date, and frequency; amounts use milliunits.

Instructions

Creates a new category within an existing category group. To also set a goal at creation time, pass goal_target (and optionally goal_target_date / goal_frequency / goal_needs_whole_amount). Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers POST /plans/{plan_id}/categories.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "plan_id": "<plan_id>",
      "name": "<name>",
      "category_group_id": "<category_group_id>"
    },
    "name": "create_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
noteNo
plan_idYesThe id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token.
goal_targetNoGoal target amount, in milliunits. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340).
goal_frequencyNo
goal_target_dateNoISO date (e.g. 2025-12-01).
category_group_idYesThe id of an existing, non-internal category group.
goal_needs_whole_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the write/external nature is covered structurally. The description adds the milliunits convention and the endpoint, but says nothing about whether category names must be unique, what happens on duplicate names, what errors occur if category_group_id is internal or missing, or what the call returns. With annotations present this is a reasonable but thin supplement.

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

Conciseness4/5

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

Three front-loaded sentences: purpose first, then the optional goal behavior, then units and endpoint. The milliunits explanation duplicates the goal_target schema description, which is the only real redundancy; otherwise every sentence carries information.

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 an 8-parameter creation tool with no output schema, the description covers the goal-parameter family and units but omits return behavior (what the created category looks like), uniqueness/validation rules for name, and how note is treated. It is adequate to call the tool but not fully complete for a mutating create operation.

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

Parameters4/5

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

Beyond the 50%-covered schema, the description explains the relationship among the goal parameters (goal_target as the trigger, with goal_target_date / goal_frequency / goal_needs_whole_amount as optional companions) and restates the milliunits convention for amounts. It does not add meaning for name, note, or category_group_id, but the goal-parameter grouping is genuine added value the schema does not convey.

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?

States a specific verb and resource ("Creates a new category") plus a scoping constraint ("within an existing category group") that separates it from create_category_group and update_category without needing to name them. The added endpoint reference (POST /plans/{plan_id}/categories) confirms the exact operation.

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 second sentence gives real conditional guidance for the goal-related parameters ("To also set a goal at creation time, pass goal_target..."), which is useful when-to-use information at the parameter level. However, there is no guidance on when to prefer this tool over siblings such as update_category or create_category_group, and no stated preconditions beyond "existing category group".

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