compare_early_repayment
Compare paying a family loan early (reduce term or payment) with investing the same amount to see which ends better and how the emergency fund changes.
Instructions
Repay a loan early or invest the same money? For one of the family's loans (name as get_family_overview lists it), an amount in the loan's currency, a strategy (reduce_term: the payment stays, the loan ends sooner; reduce_payment: the term stays, the payment drops), an optional date (YYYY-MM-DD, today or later; today when absent) and an optional yearly return of the investment (returnPct, after tax, in the loan's currency; the family's expected return when absent, 8 unless set). Both paths cost the family the same each month until the loan's own last payment (horizon): repaying invests every payment it frees, investing puts the amount in at once. Answers loanRatePct (what repaying earns for certain: the break-even return), returnPct, currency (the loan's), horizon, investEnd, repayEnd, diff (investEnd − repayEnd) and better (invest, repay or level), and the emergency fund in months now and after the amount leaves the liquid money (emergency, from the family's numbers; null when not known) with gaps. Say first that repaying is certain and investing is not; quote the figures as given. advisor.unknown_loan: no such loan; advisor.repay_nothing_ahead: the loan is repaid by that date or has under two payments left.
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": {
"loan": "<loan>",
"amount": "<amount>",
"strategy": "<strategy>"
},
"name": "compare_early_repayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day of the early payment, today or later; today when absent | |
| loan | Yes | The loan's name | |
| amount | Yes | The early payment, in the loan's currency | |
| strategy | Yes | ||
| returnPct | No | The expected yearly return of the investment, after tax, %; the family's expected return (8 unless set) when absent |