reschedule
Moves the user's appointment to another free slot on the same day, atomically. Takes date (YYYY-MM-DD), from (HH:MM, the slot held now) and to (HH:MM, the new slot). Returns ok=true with moved_to, or ok=false with a reason: taken (the target slot was taken in the race — the user keeps the slot they already held, so either outcome leaves them with an appointment — that is the point of the atomic move), not_found, invalid, error. A move to a different day is a fresh booking and needs no atomic hold, so book is the right call for that. Authorization required: the one-time Telegram OAuth consent (scope booking:write), which also covers later calls.
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": {
"date": "<date>",
"from": "<from>",
"to": "<to>"
},
"name": "reschedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Free slot to move to, HH:MM, same day, as returned by get_availability. | |
| date | Yes | Day of the appointment, YYYY-MM-DD. The move stays within this day. | |
| from | Yes | Slot the user holds now, HH:MM. |