Loan Payment
loan_paymentCompute an amortized loan payment: monthly payment, total paid, total interest. FREE.
Administrative math only — not financial advice. Typical input {"principal": 250000, "annual_rate_pct": 6.5, "years": 30} returns {"monthly_payment": 1580.17, "months": 360, "total_paid": ..., "total_interest": ...}.
Use for a fixed-rate amortized loan. Not for interest-free schedules - the merchant server's installment_plan splits a total without interest. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "principal and years must be > 0"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Loan term in years; must be greater than 0; fractions allowed, e.g. 30. | |
| principal | Yes | Loan amount; must be greater than 0, e.g. 250000. | |
| annual_rate_pct | Yes | Annual interest rate as a percentage, 0 to 100, e.g. 6.5 for 6.5%. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||