Modify a month's budgeted amount or a category's goal
modify_budgetSet or clear a YNAB category goal, or assign a budgeted amount to a category for a specific month.
Instructions
Two actions:
set_amount: sets the assigned (budgeted) amount for a category in a specific month. Requires month, category_id, amount. Covers PATCH /plans/{plan_id}/months/{month}/categories/{category_id}.
set_goal: sets or clears a category's goal (goal_target / goal_target_date / goal_frequency / goal_needs_whole_amount). Requires category_id. Covers PATCH /plans/{plan_id}/categories/{category_id}. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340).
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>",
"action": "<action>",
"category_id": "<category_id>"
},
"name": "modify_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Required for "set_amount". Defaults to "current" if omitted. | |
| action | Yes | ||
| amount | No | Required for "set_amount": the new assigned amount, in milliunits. | |
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| category_id | Yes | ||
| goal_target | No | For "set_goal": pass null to remove the goal. | |
| goal_frequency | No | ||
| goal_target_date | No | ||
| goal_needs_whole_amount | No |