Find bookable slots
find_availabilityCheck when a clinician can be booked for a service variant: list slots across a date range or return the next available appointment slot.
Instructions
Times a clinician can be booked for a service variant (list_services gives service_variant_id). With start_date and end_date (at most 45 days inclusive) it lists every slot in the range (GET /v1/availability_slots); without end_date it returns the next slot on or after start_date (today when omitted), searching up to 8 months ahead (GET /v1/next_availability_slot). Results account for existing bookings, unavailability, service duration, buffers and rooms, include services patients cannot book online, and ignore the Patient Portal's minimum notice.
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": {
"clinician_id": "<clinician_id>",
"service_variant_id": "<service_variant_id>"
},
"name": "find_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | Last date to include, YYYY-MM-DD; when given, every slot in the range is listed | |
| start_date | No | First date to search, YYYY-MM-DD (defaults to today for the next-slot search) | |
| clinician_id | Yes | ||
| service_variant_id | Yes |