Category balances for a month
get_category_balancesRetrieve budgeted, spent, and available amounts per category for a YNAB month to answer how much money is left in any category or list all category balances.
Instructions
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; for the months before, get_spending_trends. One YNAB request; changes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_id": "<plan_id>"
},
"name": "get_category_balances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | 'YYYY-MM-01' or 'current'. | current |
| plan_id | Yes | YNAB plan id or 'last-used'. | |
| include_empty | No | Also list categories with no amount at all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |