What would it take
what_would_it_takeCalculates the monthly gap to reach a financial goal by a target month and shows how spending cuts or extra income close it.
Instructions
The inverse of run_scenario, for 'what would it take to hit X by Y'. Returns ONE number, the monthly gap between the pace the date needs and the pace being run, plus every goal's landing month once it is closed. A spending cut and extra regular income close it one to one: pass what the user can already find and read residualGapEur. Extra income only helps if it is not spent; say so. When the outcome is not a gap (no_lever, date_passed, on_track) report the reason, not a number.
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": {
"goal": "<goal>",
"by_month": "<by_month>"
},
"name": "what_would_it_take"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Goal name as get_plan reports it. | |
| by_month | Yes | YYYY-MM, the month to land on. | |
| assume_spend_cut_eur | No | Monthly spending cut the user says they can make. | |
| assume_extra_income_eur | No | Monthly extra regular income the user says they can find. |