Analyze refinancing a loan at a new rate
loan_refinancePure what-if: closes the loan at refinance_month (outstanding balance settled) and restarts it at new_rate over new_tenure months. Returns outstanding balance, old vs new EMI, remaining interest vs new total interest, interest_saved, net_savings (after optional foreclosure_charge) and breakeven_months (null when the new EMI is not lower). Read-only — to persist, update the old loan's end_month and add the new loan.
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": {
"amount": "<amount>",
"interest_rate": "<interest_rate>",
"tenure": "<tenure>",
"refinance_month": "<refinance_month>",
"new_rate": "<new_rate>",
"new_tenure": "<new_tenure>"
},
"name": "loan_refinance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Outstanding loan principal at refinance_month, in rupees. | |
| tenure | Yes | Total tenure of the existing loan in months. | |
| new_rate | Yes | Annual interest rate of the new loan in percent. | |
| new_tenure | Yes | Tenure of the new loan in months. | |
| interest_rate | Yes | Current annual interest rate in percent. | |
| refinance_month | Yes | Loan-relative month the refinance happens (outstanding balance is settled). | |
| foreclosure_charge | No | Foreclosure/prepayment penalty in rupees (default 0). |