Level-payment loan
loan_calc[FREE: 25 calls/day, then $0.001 USDC per call via x402] Monthly payment, total interest and total paid for a fixed-rate amortizing loan, in exact arithmetic. The payment is rounded once to the currency scale and the final payment absorbs the rounding so the balance ends at exactly zero.
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>",
"annualRatePercent": "<annualRatePercent>",
"termMonths": "<termMonths>"
},
"name": "loan_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| rounding | No | rounding rule; default half_up (ties away from zero). half_even is banker's rounding | |
| principal | Yes | ||
| termMonths | Yes | ||
| annualRatePercent | Yes |