loan-calculator
Compute the monthly payment, total interest, and total cost of a fixed-rate amortizing loan. Uses the standard amortization formula. All amounts use the same (unspecified) currency.
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_percent": "<annual_rate_percent>",
"term_years": "<term_years>"
},
"name": "loan-calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | Loan amount (principal). | |
| term_years | Yes | Loan term in years. | |
| annual_rate_percent | Yes | Annual interest rate as a percentage (e.g. 6.5 for 6.5%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | Yes | Term in months. | |
| principal | Yes | Principal, echoed back. | |
| term_years | Yes | Term in years, echoed back. | |
| total_paid | Yes | Total paid (principal + interest). | |
| total_interest | Yes | Total interest paid over the life of the loan. | |
| monthly_payment | Yes | Monthly payment amount. | |
| annual_rate_percent | Yes | Annual rate, echoed back. |