create_booking
Create a new booking for a trip using trip ID, passenger details, and provider. Optionally specify origin, destination, or travel date to complete the reservation.
Instructions
Create a new booking.
Args:
trip_id: The ID of the trip to book.
passengers: A list of dictionaries representing passengers. Each passenger needs:
name, phone_number, age_group_id, seat_number, pick_point_id, drop_point_id,
gender (M or F), identification_type_id, id_number.
provider: The provider of the trip (e.g. mysafari).
origin_id: Optional origin ID.
destination_id: Optional destination ID.
travel_date: Optional travel date (YYYY-MM-DD).
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": {
"trip_id": "<trip_id>",
"passengers": "<passengers>",
"provider": "<provider>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_id | Yes | ||
| provider | Yes | ||
| origin_id | No | ||
| passengers | Yes | ||
| travel_date | No | ||
| destination_id | No |