Skip to main content
Glama

Giả lập trạng thái chuyến (sandbox)

simulate_booking

Advance a sandbox booking through driver assignment, arrival, start, completion, or cancellation states and trigger the corresponding GOCheap webhook.

Instructions

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.

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": {
      "booking_id": "<booking_id>",
      "action": "<action>"
    },
    "name": "simulate_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
booking_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) the description adds genuinely useful behavior: each transition triggers a corresponding GOCheap webhook, which is a side effect the agent could not infer. It does not disclose what happens on an out-of-order transition (error vs. ignored vs. forced), whether transitions are reversible, or any auth/environment requirements beyond 'sandbox'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short and front-loaded: sandbox constraint first, then the transition model, then exceptions. The arrow notation packs a lot of meaning into little text with no filler, though the exception list is terse to the point of being cryptic (cancel_by_driver vs cancel_by_gocheap are not explained).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter simulator with no output schema, the description covers the essential concepts: sandbox-only, allowed transitions, and webhook emission. It omits invalid-transition behavior and what the call returns or confirms, which matter for an agent deciding whether the simulation actually succeeded.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning. It does explain the intended sequence of action values and annotates two of them (unassign_driver returns to searching; two cancel variants), but leaves other enum values undifferentiated beyond their names and says nothing about booking_id (ID format/source) or preconditions per action.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (chuyển trạng thái / move to next state) and resource (chuyến / booking), and adds the crucial scope qualifier 'Chỉ có trên sandbox'. It does not explicitly contrast with sibling tools such as cancel_booking, whose function partially overlaps with the cancel_by_driver and cancel_by_gocheap actions, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states an explicit usage condition ('only on sandbox') and gives the recommended call order assign_driver → driver_arriving → start → complete, plus notes on the divergence paths (unassign_driver back to searching, the two cancel actions). It does not say when to prefer this sandbox simulator over a real state-changing tool or over cancel_booking, so the when-not guidance is only partial.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.