network_book
Create a REAL booking at one establishment of the Adaga network. WORKFLOW: (1) call network_search to get fresh availability and the exact price, (2) collect traveler full name and email, (3) call this tool, (4) give the human the payment instructions from the response — the booking is confirmed only after secure card payment; unpaid bookings expire automatically. Optional inputs: guests (number of guests), guest_phone (international format, e.g. +352661661438), special_requests (free text), breakfast (boolean), promo_code (string, validated by the establishment), extras (array of integer extra ids from the establishment offer). Fails with 409 if the room became unavailable.
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": {
"tenant_slug": "<tenant_slug>",
"room_id": "<room_id>",
"checkin": "<checkin>",
"checkout": "<checkout>",
"guest_name": "<guest_name>",
"guest_email": "<guest_email>"
},
"name": "network_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extras | No | Extra ids (integers) from the establishment offer | |
| guests | No | Number of guests | |
| checkin | Yes | Arrival date YYYY-MM-DD | |
| room_id | Yes | Room id from network_search | |
| checkout | Yes | Departure date YYYY-MM-DD | |
| breakfast | No | Add breakfast if the establishment offers it | |
| guest_name | Yes | Traveler full name | |
| promo_code | No | Promo code, validated by the establishment | |
| guest_email | Yes | Traveler email (confirmation is sent here) | |
| guest_phone | No | Traveler phone, international format (e.g. +352661661438) | |
| tenant_slug | Yes | Establishment slug from network_search / network_directory | |
| special_requests | No | Free-text requests for the establishment |