Manage budget months
manage_budget_monthsChange monthly budget amounts, carryover, next-month holds, transfers, and month notes by selecting an action.
Instructions
Change the budget of a month: amounts, carryover, the hold for next month, transfers between categories, the month note; pick one action. Writes. To read months use list_budget_months; to switch, import or export a budget file use manage_budget_files; category notes use manage_categories. set_amount: month, category_id, amount (the month must be one the budget has; an income category is refused on an envelope budget; |amount| at most 2251799813685247; an unknown category or month is returned as { success: false, error }). set_amount_batch: operations, 1 to 100 items {month, categoryId, amount?, carryover?} with camelCase keys, each needing amount or carryover; NOT atomic, no rollback, items applied before a failure stay applied; an unknown category, a month out of range or carryover, or amount on an envelope budget, on an income category fails only that item; after a timeout read the months back before retrying. set_carryover: month, category_id, flag (true rolls an overspent balance into the next month, false resets it; envelope budget: a positive balance always rolls over; tracking budget: only with the flag), from that month on; expense categories only. hold: month, amount greater than 0; holds for next month and may hold LESS than asked (clamped to what is left to budget); nothing held is an error; Actual ADDS to the buffer, so on an error read the month before retrying. reset_hold: month; releases the whole hold back to to-budget. transfer: month, from_category_id, to_category_id (different, expense categories only), amount greater than 0 and at most 2251799813685247; the source needs that much budgeted; NOT atomic, if the second write fails the source was already lowered. set_note: month, note; sets or clears the month note. Returns {} (set_amount), { succeeded, failed, total, successCount, failureCount } (set_amount_batch; failing items are a normal result), { success: true } (set_carryover, reset_hold), { success, held } or { success, partial, requested, held, message } (hold), { result: { success, transferred, fromCategory, toCategory } } (transfer), { result: { success, id, note, cleared } } (set_note).
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": {
"action": "<action>"
},
"name": "manage_budget_months"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | No | true rolls an overspent balance into the next month, false resets it. | |
| note | No | Note text for the month; "" clears it. Template directives such as "#template 250" work. | |
| month | No | Budget month as YYYY-MM, one the budget has (list_budget_months lists them). | |
| action | Yes | ||
| amount | No | Integer cents (5000 is $50.00). set_amount: the new budgeted amount; hold and transfer: greater than 0. | |
| operations | No | 1 to 100 items {month, categoryId, amount?, carryover?} with camelCase keys; each needs amount or carryover. | |
| category_id | No | Category id. | |
| to_category_id | No | Target category id, different from from_category_id. | |
| from_category_id | No | Source category id. |