Confirm an alert with the email code
confirm_availability_alertConfirm a create_availability_alert with the 6-digit code emailed to the guest. From then on the guest waits for a table in that range, in the order guests confirmed; a newer alert of the same email for the same place and day replaces the older one. Nothing is booked or held. A wrong code fails with otp_invalid; otp_expired or otp_attempts_exhausted means that code can no longer be used (start again with create_availability_alert).
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": {
"alert_id": "<alert_id>",
"code": "<code>"
},
"name": "confirm_availability_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| alert_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| active | Yes | ||
| booked | Yes | Nothing is booked or held: the email only says a time freed up, and the first to book it gets it | |
| message | Yes | ||
| time_to | Yes | ||
| time_from | Yes | ||
| party_size | Yes |