Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Get a category group

get_category_group
Read-only

Retrieve a single category group and all its categories from a YNAB plan using the plan ID and category group ID.

Instructions

Returns a single category group with its categories. Derived from GET /plans/{plan_id}/categories (there is no single-group GET endpoint).

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>",
      "category_group_id": "<category_group_id>"
    },
    "name": "get_category_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
category_group_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds a genuinely useful implementation note — it is derived from GET /plans/{plan_id}/categories because no single-group endpoint exists — which hints that the underlying fetch may be broader than the returned record, though it does not spell out cost or payload implications.

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 short sentences, front-loaded with what is returned, followed by the endpoint-derivation caveat. Nothing is filler and the structure matches the reading order an agent needs.

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?

There is no output schema, so the description carries the burden of saying what comes back; it does indicate the group arrives with its categories, which is the key shape information. It does not describe error behavior for an unknown category_group_id or whether the returned categories are complete records, leaving a modest gap for a two-required-param getter.

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

Parameters2/5

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

Schema coverage is only 50%: plan_id is documented in the schema (including 'last-used'/'default'), but category_group_id has no description anywhere. The description adds no meaning about either parameter, so it fails to compensate for the gap on the one undocumented identifier.

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

Purpose4/5

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

States a specific verb and resource ('Returns a single category group with its categories') and makes the singular scope explicit, which implicitly contrasts with the list-style sibling. It stops short of naming list_category_groups as the alternative, so the differentiation must be inferred from the tool name.

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?

Usage is implied by the singular scope and by the note that it is derived from the plan-level categories endpoint, but there is no explicit statement of when to call this versus list_category_groups or get_plan. The agent must infer the selection rule.

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