get_spending_trends
Return monthly spending trends per category over the last N months.
The result maps each category name to its spending month by month, oldest first, in currency units.
Gedrag
Section titled “Gedrag”| Soort | alleen lezen |
| Bevestiging | nee |
| Ongedaan maken | nee |
| Idempotent | ja |
| YNAB-verzoeken | 4 voor het voorbeeld hieronder, lege cache |
Parameters
Section titled “Parameters”| Naam | Type | Verplicht | Standaard | Beschrijving |
|---|---|---|---|---|
plan_id |
string | ja | — | YNAB plan id or ‘last-used’. |
months_count |
integer | nee | 3 |
Number of past months to include, 1 to 24 (default 3). |
Resultaat
Section titled “Resultaat”object
Voorbeeld
Section titled “Voorbeeld”Argumenten:
{ "plan_id": "demo-budget", "months_count": 3}Antwoord op het demobudget:
{ "Huur": [ { "month": "2026-07-01", "amount": 950.0 }, { "month": "2026-08-01", "amount": 950.0 }, { "month": "2026-09-01", "amount": 950.0 } ], "Stroom": [ { "month": "2026-07-01", "amount": 64.2 }, { "month": "2026-08-01", "amount": 64.2 }, { "month": "2026-09-01", "amount": 0.0 } ], "Telefoon": [ { "month": "2026-07-01", "amount": 19.99 }, { "month": "2026-08-01", "amount": 19.99 }, { "month": "2026-09-01", "amount": 19.99 } ], "Boodschappen": [ { "month": "2026-07-01", "amount": 172.89 }, { "month": "2026-08-01", "amount": 192.51 }, { "month": "2026-09-01", "amount": 0.0 } ], "Restaurants": [ { "month": "2026-07-01", "amount": 61.5 }, { "month": "2026-08-01", "amount": 89.1 }, { "month": "2026-09-01", "amount": 142.5 } ], "Vervoer": [ { "month": "2026-07-01", "amount": 45.0 }, { "month": "2026-08-01", "amount": 45.0 }, { "month": "2026-09-01", "amount": 0.0 } ], "Tennis": [ { "month": "2026-07-01", "amount": 22.0 }, { "month": "2026-08-01", "amount": 22.0 }, { "month": "2026-09-01", "amount": 0.0 } ], "Abonnementen": [ { "month": "2026-07-01", "amount": 13.49 }, { "month": "2026-08-01", "amount": 13.49 }, { "month": "2026-09-01", "amount": 0.0 } ], "Vakantie": [ { "month": "2026-07-01", "amount": 0.0 }, { "month": "2026-08-01", "amount": 0.0 }, { "month": "2026-09-01", "amount": 0.0 } ]}Fouten
Section titled “Fouten”Deze tool geeft zelf geen fouten; fouten van YNAB komen terug als Error calling tool '<tool>': YNAB <status>: <detail>.
Zie ook
Section titled “Zie ook”Onofficieel project. “We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at https://www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB.” We zijn op geen enkele manier verbonden, geassocieerd of officieel gelieerd aan YNAB of een van zijn dochterondernemingen of gelieerde bedrijven. De officiële website van YNAB vind je op https://www.ynab.com. De namen YNAB en You Need A Budget, evenals verwante namen, handelsnamen, merken, emblemen en afbeeldingen, zijn geregistreerde handelsmerken van YNAB. avenir-mcp wordt geleverd zoals het is, zonder garantie, en is geen financieel advies. Juridische informatie · Privacy