Late fee calculator
late_fee_calculatorWorks out a late fee: the amount, the new total, the exact day it applies, a ready-to-use line for the invoice, and whether the fee is in the usual range.
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>",
"due_date": "<due_date>",
"fee_kind": "<fee_kind>",
"fee_value": "<fee_value>",
"grace_days": "<grace_days>"
},
"name": "late_fee_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Invoice amount in US dollars | |
| due_date | Yes | A calendar date, YYYY-MM-DD | |
| fee_kind | Yes | flat = a dollar amount, percent = % of the invoice | |
| fee_value | Yes | Dollars for flat (e.g. 25) or the percent for percent (e.g. 1.5) | |
| grace_days | Yes | Days after the due date before the fee applies; 0 = the day after the due date |