Request a booking
request_bookingBooks a treatment for the guest, the same way the spa's website does. The booking is confirmed only when the guest pays by card on the returned pay_url: show it to the guest. Ask the guest first and only call this with customer_consent true. If the time is no longer free, nothing is booked and up to 3 other free times are returned.
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": {
"service_id": "<service_id>",
"customer_name": "<customer_name>",
"customer_consent": "<customer_consent>"
},
"name": "request_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, Sint Maarten | |
| time | No | HH:MM, Sint Maarten (UTC−4) | |
| notes | No | e.g. pressure preference, allergies, occasion | |
| guests | No | Couples treatments are always 2 | |
| language | No | Language of the pay page and email | |
| service_id | Yes | An id from list_services | |
| start_time | No | ISO 8601 with offset, e.g. 2026-11-20T15:00:00-04:00. Or give date and time. | |
| customer_name | Yes | ||
| customer_email | No | If given, the guest also gets the pay link by email | |
| customer_phone | No | E.164, e.g. +17215551234 | |
| idempotency_key | No | Repeating a request with the same key within 24 hours returns the same booking | |
| customer_consent | Yes | Must be true: the guest asked for this booking and agrees to be contacted about it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | No | ||
| pay_url | No | ||
| service | No | ||
| amount_usd | No | ||
| start_time | No | ||
| alternatives | No | ||
| booking_reference | No | ||
| pay_within_minutes | No |