check_availability
Find open slots for a doctor in clinic-local time so you only offer genuinely free appointment times. Past slots are excluded, and if the date is full, next-available alternatives are returned.
Instructions
Find open appointment slots for a doctor, in clinic-local time.
Always call this before book_appointment so you offer times that are genuinely free. Slots already in the past are excluded automatically.
If the requested date has nothing open, next_available holds the next three
openings after it, so you can offer an alternative instead of a dead end.
Args:
doctor_id: From list_doctors.
date: Clinic-local 'YYYY-MM-DD'. Defaults to today.
days_ahead: How many days to scan, starting at date. Use 7 for "sometime
next week".
Example: check_availability(doctor_id=1, date="2027-01-25", days_ahead=3)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| doctor_id | Yes | ||
| days_ahead | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||