cancel_appointment
Cancel an appointment using a two-step confirmation: first preview the details, then confirm to release the slot and prevent accidental cancellations.
Instructions
Cancel an appointment. Requires explicit confirmation.
Call it first WITHOUT confirm to get a preview of exactly what would be
cancelled. Read that back to the caller, and only call again with confirm=True
once they have said yes.
This two-step gate exists because cancelling is not reversible from here — a mistakenly cancelled slot may be taken by someone else within minutes.
Confirming releases the slot and cancels the pending reminder.
Args: appointment_id: From get_appointments. confirm: Must be True to actually cancel.
Example: cancel_appointment(appointment_id=12) # preview cancel_appointment(appointment_id=12, confirm=True) # actually cancel
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| appointment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||