Set a savings goal
set_budget_goalPropose creating or updating a budget goal (savings or spend-limit). Proposes only — awaiting confirmation. target_cents is MINOR units (cents): pass 300000 for a 3000.00 target, never a decimal. monthly_contribution_cents (optional) is also in minor units.
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": {
"ledger_id": "<ledger_id>",
"goal_type": "<goal_type>",
"name": "<name>",
"target_cents": "<target_cents>",
"start_month": "<start_month>"
},
"name": "set_budget_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for this goal. | |
| period | No | Goal period. Defaults to 'monthly'. | |
| goal_id | No | If updating an existing goal, supply its id. | |
| category | No | Category slug/name for spend_limit goals. Call list_budget_categories if unsure. | |
| goal_type | Yes | Type of goal: 'savings' or 'spend_limit'. | |
| ledger_id | Yes | ||
| start_month | Yes | Starting month as YYYY-MM. | |
| target_date | No | Optional target completion date as ISO YYYY-MM-DD. | |
| target_cents | Yes | Goal target in minor units (cents). 300000 = 3000.00. | |
| savings_source_category | No | Category slug/name whose net credits measure savings progress. Required for savings goals. | |
| monthly_contribution_cents | No | Optional planned monthly contribution in minor units (cents). |