Skip to main content
Glama
Maronato

YNAB MCP Server

by Maronato

Get Spending Analysis

get_spending_analysis
Read-onlyIdempotent

Aggregate spending by category or payee within a date range to identify top spending areas, with optional time-based breakdowns for deeper insight.

Instructions

Aggregate spending over a date range and rank by category/payee for quick insights. Optionally set time_granularity to also bucket the same spending over time (daily, weekly, day-of-week, week-of-month) to see when money is spent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNo
group_byNocategory
budget_idNoBudget ID. Omit to use the last-used budget.
since_dateYesDate in YYYY-MM-DD format.
until_dateNoDate in YYYY-MM-DD format.
account_idsNo
category_idsNo
time_granularityNoAlso bucket the same spending over time (daily, weekly starting Monday, day-of-week, or week-of-month) and include it as by_time in the result.
include_transfersNoInclude internal account transfers in results. Defaults to false since transfers inflate spending totals.
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is clear. The description adds that the tool provides aggregated ranking and optional time bucketing. It does not disclose pagination, performance implications of large date ranges, or how the 'top_n' parameter affects results beyond what is in the schema.

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?

The description is two sentences, front-loaded with the core purpose, and adds the key optional feature in the second sentence. No unnecessary words.

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?

With 9 parameters, no output schema, and no discussion of filtering or result structure, the description is incomplete. It explains the main ranking and time bucketing but omits important filtering capabilities (accounts, categories, transfers, top_n limit). The annotations provide safety context but not operational completeness.

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 56%, with some parameters (budget_id, date formats, time_granularity, include_transfers) documented in the schema. The tool description adds meaning for time_granularity and implies group_by via 'rank by category/payee', but does not explain top_n (ranking limit) or filtering parameters like account_ids and category_ids. Thus, it partially compensates for the schema gaps.

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?

The description uses clear verbs ('aggregate', 'rank') and specifies the resource ('spending') and scope ('over a date range'). It mentions optional time granularity. However, it does not explicitly distinguish from sibling tools like search_transactions or get_spending_trends, which also deal with spending data.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. The phrase 'for quick insights' implies a summary use case, but there is no explicit when-to-use/when-not-to-use or mention of alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Maronato/ynab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server