Skip to main content
Glama

YNAB MCP Server

by dgalarza

compare_spending_by_year

Analyze category spending trends across multiple years to identify patterns and track budget performance over time with visual comparisons.

Instructions

Compare spending for a category across multiple years.

Args: budget_id: The ID of the budget (use 'last-used' for default budget) category_id: The category ID to analyze start_year: Starting year (e.g., 2020) num_years: Number of years to compare (default: 5) include_graph: Include terminal graph visualization (default: True) Returns: JSON string with year-over-year comparison including totals, changes, percentage changes, and optional graph

Input Schema

NameRequiredDescriptionDefault
budget_idYes
category_idYes
include_graphNo
num_yearsNo
start_yearYes

Input Schema (JSON Schema)

{ "properties": { "budget_id": { "title": "Budget Id", "type": "string" }, "category_id": { "title": "Category Id", "type": "string" }, "include_graph": { "default": true, "title": "Include Graph", "type": "boolean" }, "num_years": { "default": 5, "title": "Num Years", "type": "integer" }, "start_year": { "title": "Start Year", "type": "integer" } }, "required": [ "budget_id", "category_id", "start_year" ], "type": "object" }

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/dgalarza/ynab-mcp'

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