Cancel a patient appointment
cancel_appointmentUse this when someone asks to cancel a patient's appointment. Returns the canceled appointment and whether the clinic's cancellation message goes to the patient; the appointment is kept with status CANCELED, never deleted. Not for moving it to another time.
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": {
"appointmentId": "<appointmentId>",
"expectedLastEditTime": "<expectedLastEditTime>"
},
"name": "cancel_appointment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appointmentId | Yes | Id of the appointment, from list_appointments. | |
| expectedLastEditTime | Yes | The lastEditTime from list_appointments. An appointment changed since then is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| appointment | Yes | ||
| clientNotification | Yes |