Yearly cost of a short loan repaid at once
loan.one_repaymentUse this when someone borrows an amount and repays a single larger sum after some days, as with a phone or app loan, a salary advance or a loan from a moneylender, and asks what rate that is a month or a year (for example "I borrowed 1,000 and must repay 1,150 in 30 days"). Do not use it for a loan repaid in instalments (use loan.instalments), and do not use it to judge a lender.
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>",
"repay": "<repay>",
"days": "<days>"
},
"name": "loan.one_repayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | How many days until it must be repaid. | |
| repay | Yes | The whole amount to be paid back, including interest and any fees added to it. | |
| amount | Yes | The amount borrowed. | |
| currency | No | The currency, as its three-letter code (GHS, NGN, KES, ZAR...). Only labels the answer; leave out if unknown. | |
| upfront_fees | No | Fees taken from the loan when it is paid out, as an amount. Leave out if none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| days | Yes | ||
| note | Yes | ||
| repay | Yes | ||
| currency | No | ||
| explore_url | No | ||
| how_counted | Yes | ||
| amount_borrowed | Yes | ||
| amount_received | No | ||
| monthly_rate_percent | No | ||
| cost_percent_of_amount | No | ||
| yearly_rate_simple_percent | Yes | ||
| yearly_rate_compounded_percent | Yes |