get_category_balances
Budgeted, spent (activity) and available (balance) per category for a month.
Use it for “how much is left in Groceries?” or to list every category’s money. Amounts in currency units; activity is negative for spending. Hidden and internal categories are left out, and so are categories with nothing budgeted, spent or available unless include_empty is true. For the share of each budget consumed use get_budget_vs_actual; for the month’s totals, get_monthly_summary. One YNAB request; changes nothing.
Comportement
Section intitulée « Comportement »| Nature | lecture seule |
| Confirmation | non |
| Annulation | non |
| Idempotent | oui |
| Requêtes YNAB | 1 pour l’exemple ci-dessous, cache vide |
Paramètres
Section intitulée « Paramètres »| Nom | Type | Obligatoire | Défaut | Description |
|---|---|---|---|---|
plan_id |
string | oui | — | YNAB plan id or ‘last-used’. |
month |
string | non | "current" |
‘YYYY-MM-01’ or ‘current’. |
include_empty |
boolean | non | false |
Also list categories with no amount at all. |
array of object
| Champ | Type | Description |
|---|---|---|
category_id |
string | YNAB id of the category. |
name |
string | Category name. |
group |
string | Name of the category’s group. |
budgeted |
number | Amount assigned to the category this month. |
activity |
number | Amount spent (negative) or received in the category this month. |
balance |
number | Available at the end of the month: carried over, plus budgeted, plus activity. |
Arguments :
{ "plan_id": "demo-budget", "month": "2026-09-01"}Réponse sur le budget de démonstration :
[ { "category_id": "cat-rent", "name": "Loyer", "group": "Charges fixes", "budgeted": 950.0, "activity": -950.0, "balance": 0.0 }, { "category_id": "cat-power", "name": "Électricité", "group": "Charges fixes", "budgeted": 64.2, "activity": -64.2, "balance": 0.0 }, { "category_id": "cat-internet", "name": "Box internet", "group": "Charges fixes", "budgeted": 29.99, "activity": -29.99, "balance": 0.0 }, { "category_id": "cat-phone", "name": "Téléphone", "group": "Charges fixes", "budgeted": 19.99, "activity": -19.99, "balance": 0.0 }, "… 6 more"]month must be 'current' or the first day of a month as YYYY-MM-01, got '{month}'.
Les erreurs propres à YNAB reviennent sous la forme Error calling tool '<tool>': YNAB <status>: <detail>.
Voir aussi
Section intitulée « Voir aussi »Projet non officiel. « 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. » Nous ne sommes ni affiliés, ni associés, ni liés officiellement de quelque manière que ce soit à YNAB ou à ses filiales et sociétés affiliées. Le site officiel de YNAB se trouve à l’adresse https://www.ynab.com. Les noms YNAB et You Need A Budget, ainsi que les noms, dénominations commerciales, marques, emblèmes et images qui s’y rattachent, sont des marques déposées de YNAB. avenir-mcp est fourni tel quel, sans garantie, et n’est pas un conseil financier. Mentions légales · Confidentialité