Loan Apr
loan_aprTrue cost of a loan including fees: the US Truth in Lending APR (Regulation Z actuarial method) and the EU APRC (Consumer Credit Directive annual effective rate), plus the payment, amount financed, finance charge and total of payments for a level-payment loan. Handles origination fees and points paid upfront or rolled into the loan, a balloon payment, and weekly to annual payments. Compares the note rate with the real borrowing rate so offers can be ranked. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/loan-apr
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>",
"ratePct": "<ratePct>",
"termMonths": "<termMonths>"
},
"name": "loan_apr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | Prepaid finance charges (origination, points, broker fees) | |
| amount | Yes | Loan amount (principal before financed fees) | |
| points | No | Discount points as % of the loan amount (added to fees) | |
| balloon | No | Extra amount due with the last payment | |
| payment | No | Use this payment instead of computing it | |
| ratePct | Yes | Nominal annual note rate | |
| termMonths | Yes | ||
| feesFinanced | No | true: fees are added to the loan balance; false: paid upfront / deducted from proceeds | |
| paymentsPerYear | No |