calculate_loan_payment
Calculate fixed monthly payment for an amortizing loan given principal, annual interest rate, and term in months. Returns monthly payment, total cost, and total interest.
Instructions
Calculate the fixed monthly payment of a generic amortizing loan when the term is expressed in months. Inputs: principal (amount borrowed), annual_rate (annual interest rate in percent), months (term in months). Returns monthly payment, total cost and total interest. Read-only and deterministic. Prefer calculate_mortgage if you want a term in years or an amortization schedule.
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>",
"months": "<months>"
},
"name": "calculate_loan_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | Yes | Loan duration in months | |
| principal | Yes | Loan amount | |
| annual_rate | Yes | Annual interest rate in % |