Skip to main content
Glama
hs737

MCP Server for YNAB

by hs737

Analysis — Overspent history

analysis_overspent_history
Read-only

Find overspent YNAB categories across a date range, flag each as cash or credit, and total what Ready to Assign absorbed.

Instructions

[READ] Every negative month-end category balance across a range, with each overspend flagged as cash or credit and a running total of what was absorbed by Ready to Assign. Cash overspending comes out of the next month's Ready to Assign, which is why a month can look under-funded for a reason invisible inside it; credit overspending stays as a negative balance and becomes debt the payment category has not covered. YNAB does not report which kind an overspend was, so it is inferred from the accounts the category was spent on. from_month and to_month: 'YYYY-MM', an ISO date, or 'current'. Also returns the categories that were overspent in the most months. Costs one YNAB request per month in the range (limit 36 months); check overview_request_budget before a long range. Plus one for the transaction history used to tell cash from credit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idNo
to_monthNo
from_monthYes
include_hiddenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive, closed-world), and the description goes well beyond that: the cash-vs-credit inference and why YNAB cannot report it, the downstream effect on next month's Ready to Assign, and the per-month request cost model. This is exactly the extra behavioral context 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?

Front-loaded with '[READ]' and the core return shape, followed by the conceptual cash/credit explanation and then the cost caveat. Dense but every clause carries information; the cash/credit mechanism paragraph is the only mildly padded part.

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 spelled out, yet the description helpfully summarizes them anyway. Cost, limits, and date formats are covered; the only real gap is the semantics of plan_id and include_hidden for a 4-parameter tool.

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 coverage is 0%, so the description must compensate. It does document accepted formats for from_month/to_month ('YYYY-MM', ISO date, or 'current'), but says nothing about plan_id or include_hidden, leaving half the parameters undocumented in both schema and description. Minimum-viable rather than complete.

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+resource (overspent/inference history) and explicitly scopes it 'across a range', which implicitly separates it from the single-period sibling analysis_overspent_categories. It also enumerates what is returned (negative month-end balances, cash/credit flags, running total, most-overspent categories). It misses an explicit disambiguation sentence naming the sibling, so it falls short of a 5.

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?

Gives a concrete operational precondition ('check overview_request_budget before a long range') and states the 36-month cap, which tells the agent when the call is expensive. However it never states when to prefer this over analysis_overspent_categories or the month-scoped alternatives.

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