appointment-fit
Does this appointment fit: opening hours in the venue's zone, closed days, existing bookings with buffers, minimum notice — Checks one proposed appointment (instant + duration) against a venue's local opening hours per weekday, closed dates or a named holiday calendar, up to 500 existing bookings with a buffer on each side, and a minimum notice measured from a caller-supplied asOf; every violated rule is returned as a witness with the conflicting booking or hour block. Local hours are resolved in the venue's IANA zone
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": {
"start": "<start>",
"durationMinutes": "<durationMinutes>",
"timeZone": "<timeZone>",
"hours": "<hours>"
},
"name": "appointment-fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | Reference instant for minimum notice. | |
| hours | Yes | ||
| start | Yes | ||
| weekend | No | Ignored for hours; with a named calendar only its holidays are used. | |
| bookings | No | ||
| calendar | No | Optional named holiday calendar for closed days (unsupported outside its range). Without it only holidays/weekend you list apply; hours decide the weekdays. | |
| holidays | No | Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry). | |
| timeZone | Yes | Venue zone in which hours apply. | |
| bufferMinutes | No | Required gap on each side of the appointment. | |
| durationMinutes | Yes | ||
| minNoticeMinutes | No | Needs asOf. |