Đặt chuyến
create_bookingCreates a trip from an existing quote ID after the user explicitly confirms the price and trip details. Repeat calls with the same quote ID do not create a second booking.
Instructions
Tạo chuyến từ một quote_id (sandbox). Chuyến sandbox: dùng simulate_booking để chuyển trạng thái. Chỉ gọi khi người dùng đã xác nhận rõ ràng giá và thông tin chuyến trong cuộc trò chuyện; đặt user_confirmed = true để xác nhận điều đó. Gọi lại với cùng quote_id không tạo chuyến thứ hai.
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": {
"quote_id": "<quote_id>",
"user_confirmed": "<user_confirmed>",
"customer": "<customer>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Ghi chú cho tài xế | |
| vehicle | No | Xe của khách, chỉ cho dịch vụ lái hộ | |
| customer | Yes | ||
| quote_id | Yes | ||
| flight_code | No | ||
| payment_method | No | Mặc định cash: khách trả tài xế | |
| user_confirmed | Yes | true nghĩa là người dùng đã đồng ý giá và thông tin chuyến. Không tự đặt true khi người dùng chưa xác nhận. | |
| partner_reference_id | No | Mã đơn phía đối tác, duy nhất. Bỏ trống thì MCP tự sinh dạng mcp-<uuid>. |