calculate_mortgage
Calculate fixed monthly payments, total interest, and total cost for any amortizing loan. Optionally view a month-by-month amortization schedule.
Instructions
Calculate the fixed monthly payment, total interest and total cost of a mortgage or amortizing loan, with an optional month-by-month amortization schedule. Use for home-loan or any fixed-rate amortizing loan questions in any currency. Inputs: principal (amount borrowed), annual_rate (nominal annual interest rate in percent, e.g. 3.5), years (term in years), optional with_schedule (boolean — include the full amortization table). Read-only and deterministic. Does not include insurance, taxes or fees.
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": {
"principal": "<principal>",
"annual_rate": "<annual_rate>",
"years": "<years>"
},
"name": "calculate_mortgage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Loan duration in years | |
| principal | Yes | Loan amount in currency units | |
| annual_rate | Yes | Annual interest rate in % | |
| with_schedule | No | Include first 12 months + last month amortization |