create_booking
Book a hotel room by first retrieving the price and confirmation code, then completing the reservation after the guest approves the quoted price.
Instructions
Books a room in two steps. First call it without confirmation_code: you get the price and a code. Show the price to the user, and only if they say yes, call again with the same data and the code.
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": {
"room_id": "<room_id>",
"guest_name": "<guest_name>",
"guest_email": "<guest_email>",
"guests": "<guests>",
"check_in": "<check_in>",
"check_out": "<check_out>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guests | Yes | ||
| room_id | Yes | ||
| check_in | Yes | YYYY-MM-DD | |
| check_out | Yes | YYYY-MM-DD | |
| guest_name | Yes | ||
| guest_email | Yes | ||
| confirmation_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |