Loan payment and total interest
smartfin_calculate_loan_paymentMonthly payment, total interest and total paid for a fixed-rate loan with monthly payments: mortgage, car, student or personal loan. Give either loan_amount, or home_price with down_payment_pct for a mortgage. A mortgage takes the mortgage calculator's ranges: $1,000 to $100,000,000, a rate from 0% to 25%, 5 to 30 years. Use when the user asks what a loan costs per month or in total, or how the rate or term changes the cost. Do not use for variable-rate loans, interest-only loans, or credit cards. Excludes taxes, insurance and 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": {
"annual_rate_pct": "<annual_rate_pct>",
"term_years": "<term_years>"
},
"name": "smartfin_calculate_loan_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Currency symbol for the amounts in the summary only; amounts are never converted. The link opens the page in US dollars, and how_to says to pick the currency there. Default USD | |
| loan_type | No | Type of loan; chooses the SmartFin calculator link. Default mortgage | |
| home_price | No | Mortgage only: home price, in the currency chosen, with down_payment_pct | |
| term_years | Yes | Loan term in years, e.g. 30 for a mortgage, 5 for a car loan | |
| loan_amount | No | Amount borrowed, in the currency chosen. Give this or home_price | |
| annual_rate_pct | Yes | Annual interest rate in %, e.g. 6.5 | |
| down_payment_pct | No | Mortgage only: down payment as % of home_price. Default 20 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cite | Yes | How to credit this result | |
| data | Yes | ||
| next | Yes | Suggested follow-up calls | |
| links | Yes | ||
| how_to | Yes | Steps for the user to see or redo this on smartfin.fyi | |
| source | Yes | ||
| summary | Yes | Plain-language result the assistant can quote |