Báo giá chuyến
get_quoteRequest a time-limited, single-use trip quote with quote ID, VND fare, distance, pickup time, and expiry before creating a booking.
Instructions
Báo giá một chuyến. Trả về quote_id, giá (VND), quãng đường, giờ đón và expires_at. Quote có hạn và chỉ dùng được một lần. Sau khi có giá, PHẢI đọc lại cho người dùng (dịch vụ, điểm đón, điểm đến, giờ đón, giá) và chờ họ đồng ý trước khi gọi create_booking. pick_up_time bỏ trống là đi ngay. Chuyến hai chiều: ways = two_way và return_time.
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": "<service>",
"pick_up": "<pick_up>",
"destination": "<destination>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ways | No | ||
| pick_up | Yes | Một trong hai: { place_id } từ search_places, hoặc { lat, lng, address } | |
| service | Yes | thue-tai-xe: lái hộ ô tô; lai-ho-xe-may: lái hộ xe máy; taxi-san-bay, xe-hop-dong: xe kèm tài xế, cần car_type | |
| car_type | No | Bắt buộc với taxi-san-bay, xe-hop-dong; lấy từ list_services | |
| destination | Yes | Một trong hai: { place_id } từ search_places, hoặc { lat, lng, address } | |
| return_time | No | Giờ về của chuyến two_way | |
| pick_up_time | No | ISO 8601 kèm múi giờ, ví dụ 2026-12-05T19:30:00+07:00 |