Skip to main content
Glama

Xem chuyến

get_booking
Read-only

Check a booking’s status and trip details by booking ID, including the assigned driver once accepted. Use it to track a specific GOCheap trip.

Instructions

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.

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>"
    },
    "name": "get_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
booking_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds a real behavioral fact beyond them: driver information is only present once a driver has accepted, meaning the payload's shape varies by booking state. It says nothing about error behavior for invalid or expired identifiers.

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

Conciseness5/5

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

A single short sentence that front-loads what is returned, then the identifier, then the conditional driver detail. No filler or repetition of schema constraints.

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

Completeness4/5

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

For a one-parameter read tool with annotations and no output schema, this covers purpose, identifier format, and the one notable payload variation. Only the source of booking_id and failure modes are left unstated.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the parameter meaning, and it does by naming booking_id and giving a concrete format example (LX261205ABC), which the schema's bare string type does not convey. It stops short of saying where the identifier comes from (e.g., the value returned by create_booking).

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 gives a specific verb and resource: 'Xem trạng thái và chi tiết một chuyến' (view the status and details of a trip), keyed by booking_id. It is clear what the tool returns, but it never contrasts this single-booking lookup with siblings like list_bookings or get_quote, so an agent must infer the single-record scope from the name alone.

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

Usage Guidelines3/5

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

Usage is only implied: you need a booking_id, so this is a lookup of one known booking. There is no explicit statement about when to prefer this over list_bookings (to enumerate) or get_quote (for pricing), and no guidance on what to do if the identifier is unknown.

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