Skip to main content
Glama
calebl

YNAB MCP Server

by calebl

Spending By Payee

ynab_spending_by_payee
Read-only

Get spending totals per payee for any date range, sorted from highest to lowest. Excludes internal transfers and counts split transactions to show where your money actually goes.

Instructions

Totals spending per payee over a date range, biggest spend first - where the money actually goes by merchant. Splits are counted through their subtransactions, and transfers between your own accounts are excluded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOnly return the top N payees by spend
planIdNoThe plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias)
budgetIdNoDeprecated alias of planId (still accepted)
sinceDateNoStart of the range, inclusive (ISO format: 2024-01-01). Defaults to 30 days ago.
untilDateNoEnd of the range, inclusive (ISO format: 2024-01-31). Defaults to no end date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.2/5.0
Behavior4/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 meaningful behavioral context beyond annotations: it explains how splits are handled (counted through subtransactions) and that transfers between own accounts are excluded. This is useful edge-case disclosure that helps an agent predict results. It doesn't mention pagination or output format, but with no output schema and read-only semantics, the key behaviors are covered.

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 core function is front-loaded, and the edge-case behaviors (splits, transfers) are packed into the second sentence. Every word earns its place.

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?

For a read-only aggregation tool with 100% schema coverage and no output schema, the description is nearly complete. It covers the core function, the sort order, the split handling, and the transfer exclusion. The only minor gap is that it doesn't describe the return shape (e.g., whether it returns a list of payee names with amounts), but with no output schema and a clear aggregation description, this is a small gap.

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 the schema already documents all parameters (limit, planId, budgetId, sinceDate, untilDate) with defaults and formats. The description adds the conceptual meaning of 'limit' (top N payees by spend) and the date range concept, but doesn't add much beyond the schema. Baseline 3 is appropriate since 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 tool's function: 'Totals spending per payee over a date range, biggest spend first'. It also adds a helpful real-world framing ('where the money actually goes by merchant') and distinguishes it from related tools by mentioning specific exclusions (splits counted via subtransactions, transfers between own accounts excluded). This is a specific verb+resource with clear scope.

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?

The description implies when to use this tool: when you need spending totals by merchant/payee over a date range. It doesn't explicitly name alternatives or say when not to use it, but the sibling list includes ynab_spending_by_category and ynab_cash_flow, and the description's focus on payees/merchants makes the use case clear. It lacks explicit exclusions or alternative routing, so it doesn't earn a 5.

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