Mortgage payment
compute_mortgage_paymentMonthly principal and interest on a loan, the payment in year 1 when the loan starts interest-only, the debt service over the first 12 months and per year, and the cost of points. Payment figures differ with compounding and with how interest-only months are handled: this engine compounds monthly, pays at the end of each month and, after an interest-only period, amortizes over the full term as the Analyzer workbook does; each convention is stated in the answer. Send loan_amount, rate_pct (7.25 means 7.25% a year) and amort_years (0 means interest-only); optionally io_months and points_pct. A rate over 30% a year is refused as a likely typo.
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_amount": "<loan_amount>",
"rate_pct": "<rate_pct>",
"amort_years": "<amort_years>"
},
"name": "compute_mortgage_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate_pct | Yes | Interest rate in percent per year, e.g. 7.25 | |
| io_months | No | Interest-only months at the start, e.g. 12 | |
| points_pct | No | Points as a percent of the loan, e.g. 1 | |
| amort_years | Yes | Amortization in years, e.g. 30; 0 means interest-only | |
| loan_amount | Yes | Loan amount in dollars, e.g. 300000 |