Confirm a reservation with the email code
confirm_reservationConfirm a pending reservation with the 6-digit code emailed to the guest. If the same email already has a pending or confirmed booking at this location whose table time overlaps this one (lunch and dinner the same day do not), it fails with already_booked and nothing is confirmed; details carry that booking's date, time, partySize, status, confirmationCode and manageUrl. Ask the guest: change the booking they have (change_reservation with that confirmationCode; this new one is then let go on its own), or book this one too (call confirm_reservation again with the same code and confirm_additional: true). The code stays valid for that second call; do not repeat the call without confirm_additional (each try uses up one of the code's few attempts and gets the same answer). A booking the restaurant entered itself is never reported. A wrong code fails with otp_invalid (ask the guest to check it and try again); otp_expired or otp_attempts_exhausted means that code can no longer be used (book again with create_reservation to get a new one).
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": {
"reservation_id": "<reservation_id>",
"code": "<code>"
},
"name": "confirm_reservation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| reservation_id | Yes | ||
| confirm_additional | No | Only after already_booked, when the guest wants this table as well as the one they have (e.g. for another group). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| deposit | Yes | #368: the deposit the restaurant asks to hold this booking; null = none (or, on create_reservation, not past the code yet: see deposit_amount). The guest pays the restaurant directly; only the restaurant marks it received | |
| message | No | ||
| confirmed | Yes | ||
| manage_url | Yes | ||
| confirmation_code | Yes |