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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:37-39 (handler)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: [], }, },
- src/index.ts:154-158 (schema)JSON Schema definition for the list_budgets tool input, which requires no parameters.inputSchema: { type: "object" as const, properties: {}, required: [], },
- src/index.ts:315-317 (handler)Dispatch handler in the CallToolRequestSchema that invokes the listBudgets method when the tool is called.case "list_budgets": result = await client.listBudgets(); break;