Skip to main content
Glama
jeangnc

YNAB MCP Server

by jeangnc

list_budgets

Retrieve all budgets for the authenticated user, including budget names, IDs, and last modified dates to manage financial planning.

Instructions

Get all budgets for the authenticated user. Returns budget names, IDs, and last modified dates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function in YNABClient that fetches the list of budgets from the YNAB API endpoint /budgets.
    async listBudgets() { return this.request<{ budgets: any[] }>("/budgets"); }
  • src/index.ts:151-159 (registration)
    Registration of the list_budgets tool in the tools array, including name, description, and input schema (empty). This is exposed via ListToolsRequestHandler.
    { name: "list_budgets", description: "Get all budgets for the authenticated user. Returns budget names, IDs, and last modified dates.", inputSchema: { type: "object" as const, properties: {}, required: [], }, },
  • JSON Schema definition for the list_budgets tool input, which requires no parameters.
    inputSchema: { type: "object" as const, properties: {}, required: [], },
  • Dispatch handler in the CallToolRequestSchema that invokes the listBudgets method when the tool is called.
    case "list_budgets": result = await client.listBudgets(); break;

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

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