Skip to main content
Glama
hs737

MCP Server for YNAB

by hs737

Analysis — Assignment patterns

analysis_assignment_patterns
Read-only

Detect categories whose monthly assignment equals a fixed base plus that month's inflows, revealing possible double-funding of savings interest.

Instructions

[READ] Categories whose monthly assignment equals a fixed base plus the money that arrived in the category that month. This is the interest double-count: a savings category earns interest, the interest is categorised into it, and the assignment is then written as 'the usual $1,500 plus the $12.40 of interest' — funding it twice. Each month is individually plausible, which is why nobody notices; sixteen months of it came to about $841 on the plan this was written for. Narrow it with group_ids or category_ids. from_month and to_month: 'YYYY-MM', an ISO date, or 'current'. total_if_unintended is what the pattern would have double-funded. It is a signal, not a verdict: a category deliberately funded to cover its own activity produces the same shape, so the matching months are reported for checking. Costs one YNAB request per month in the range (limit 36 months); check overview_request_budget before a long range. Plus one for the inflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idNo
to_monthNo
group_idsNo
from_monthYes
category_idsNo
include_hiddenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, but the description goes well beyond them: it quantifies the request cost (one YNAB request per month, 36-month cap, plus one for inflows), explains the false-positive case (deliberately self-funded categories), and clarifies that total_if_unintended is a signal metric, not a verdict. That is rich behavioral context the annotations cannot carry.

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?

It is front-loaded with the [READ] marker and the core definition, then layers caveats and cost. Nearly every sentence earns its place, though the illustrative anecdote ('sixteen months... about $841') is color that a tighter version could drop.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the description covers cost, interpretation, filtering, and date formats. The only gaps are the undocumented plan_id and include_hidden parameters, minor for a plan-scoped analysis tool.

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?

Schema description coverage is 0%, so the description must compensate, and it does for four of six params: from_month/to_month get explicit accepted formats ('YYYY-MM', ISO date, 'current'), and group_ids/category_ids are explained as narrowing filters. plan_id and include_hidden are left undocumented, so it is not fully complete.

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 names a precise verb and resource: it detects categories whose monthly assignment equals a fixed base plus that month's inflows (interest double-counting). The opening [READ] tag and the concrete mechanism distinguish it immediately from sibling analysis_* tools like analysis_copied_forward_months or analysis_credit_funding.

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

Usage Guidelines4/5

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

It tells the agent how to narrow results (group_ids/category_ids), when to check cost (overview_request_budget before a long range), and how to interpret output ('a signal, not a verdict'). It lacks an explicit statement of when this analysis is preferable to a sibling like analysis_flow_trace, so it's a strong 4 rather than a 5.

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