finance_apr
Loan APR calculator (Reg Z) — True APR of a loan including fees and points, by the Reg Z actuarial method: the rate that makes all payments equal the amount financed (loan minus prepaid finance charges). Params: amount=, term_months= (or term_years=), rate= (note rate %) or payment=; optional fees= (prepaid finance charges in $), points= (% of loan), fees_financed=true (fees added to the loan), periods_per_year= (12 default, 26, 52...). Returns APR, note rate, APR minus note rate, effective annual rate, payment, amount financed, finance charge, total of payments, first-year interest, the 1/8-point Reg Z tolerance and flags (fees adding more than 1 point, APR over 36%). Offline. The example output uses amount=300000&term_months=360&rate=6.5&fees=4500&points=1. Price: $0.002 USDC (Base, via x402).
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": {
"amount": "<amount>",
"term_months": "<term_months>",
"rate": "<rate>"
},
"name": "finance_apr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | 6.5 | |
| amount | Yes | 300000 | |
| term_months | Yes | 360 |