booking-change-penalty
Which cancellation or change tier applies at this moment, and what does it cost? — Given a booking start, the moment of change, the booking amount and a tiered policy whose deadlines are either elapsed hours before start ('48 hours') or local calendar days at a local time ('18:00 the day before' in the venue's zone, DST-correct), returns the applicable tier, its deadline instants, the penalty in minor units under your stated rounding, and when the next tier begins; checks an ass
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": {
"startAt": "<startAt>",
"changeAt": "<changeAt>",
"amountMinor": "<amountMinor>",
"currency": "<currency>",
"tiers": "<tiers>",
"rounding": "<rounding>"
},
"name": "booking-change-penalty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiers | Yes | ||
| startAt | Yes | ||
| changeAt | Yes | The moment of cancellation/change; never read from the clock. | |
| currency | Yes | ||
| rounding | Yes | Applied to percentage penalties. | |
| timeZone | No | Needed for daysBefore tiers. | |
| noShowTier | No | Tier name charged when changeAt is after startAt; default the most severe tier. | |
| amountMinor | Yes | ||
| claimedPenaltyMinor | No |