GOCheap MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GOCHEAP_API_KEY | Yes | API key GOCheap: `gc_test_...` (sandbox) hoặc `gc_live_...` (production). | |
| GOCHEAP_API_URL | Yes | Base URL GOCheap gửi kèm API key. | |
| GOCHEAP_LANGUAGE | No | Ngôn ngữ thông báo lỗi: `vi` (mặc định) hoặc `en`. | vi |
| GOCHEAP_ALLOW_LIVE_WRITE | No | Đặt `true` để cho phép tạo/huỷ chuyến bằng key production. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
GOCheap Open API (sandbox): đặt tài xế lái hộ, taxi sân bay, xe hợp đồng. Quy trình đặt chuyến: list_services → search_places (nếu cần place_id) → get_quote → đọc lại giá và thông tin cho người dùng, chờ xác nhận → create_booking. Không bao giờ tạo chuyến khi người dùng chưa đồng ý giá. Theo dõi chuyến bằng get_booking.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_servicesA | Liệt kê các dịch vụ GOCheap được mở cho tài khoản này (sandbox), kèm car_types của taxi sân bay và xe hợp đồng. Gọi trước get_quote để biết service và car_type hợp lệ. |
| search_placesA | Tìm địa điểm theo tên hoặc địa chỉ tại Việt Nam, trả về place_id dùng cho get_quote. Truyền lat/lng gần đúng để ưu tiên kết quả gần. |
| get_quoteA | 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. |
| create_bookingA | 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. |
| get_bookingA | Xem trạng thái và chi tiết một chuyến theo booking_id (ví dụ LX261205ABC), gồm tài xế khi đã có người nhận. |
| list_bookingsB | Liệt kê chuyến của tài khoản, lọc theo trạng thái, khoảng thời gian tạo hoặc partner_reference_id. Dùng cho tra cứu và đối soát. |
| cancel_bookingB | Huỷ một chuyến chưa bắt đầu (sandbox). Chỉ gọi khi người dùng yêu cầu huỷ đúng chuyến này. |
| list_webhooksB | Liệt kê webhook đã đăng ký của môi trường hiện tại (không gồm secret). |
| send_webhook_testB | Gửi sự kiện webhook.test tới một webhook để kiểm tra máy chủ nhận của đối tác; trả về mã HTTP và thời gian phản hồi. |
| simulate_bookingA | Chỉ có trên sandbox. Chuyển chuyến sang trạng thái tiếp theo, GOCheap gửi webhook tương ứng. Thứ tự thường dùng: assign_driver → driver_arriving → start → complete. Khác: unassign_driver (về searching), cancel_by_driver, cancel_by_gocheap. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
The core booking lifecycle tools (search_places, get_quote, create_booking, get_booking, list_bookings, cancel_booking) each have a clearly distinct role, and descriptions reinforce the flow ordering. The only real overlap is cancellation, which appears both as cancel_booking and as simulate_booking sub-actions (cancel_by_driver, cancel_by_gocheap); descriptions distinguish them by actor, but an agent could still hesitate there.
Every name is snake_case with a leading verb (list_, get_, create_, cancel_, search_, simulate_, send_), producing a predictable verb_noun pattern throughout. send_webhook_test is slightly longer but still follows the verb-first convention and reads clearly.
Ten tools is well-scoped for a ride-hailing booking API: discovery, quoting, booking lifecycle, and webhook diagnostics are each covered by a small number of purpose-built tools. No tool feels redundant or padded.
Booking CRUD is fully covered (create, get, list, cancel) plus the quote/place/service prerequisites and sandbox state simulation, so no core workflow dead-ends. Minor gaps remain around webhook management (list and test exist, but no register/update/delete) and no tool for modifying or rescheduling an existing booking.