Skip to main content
Glama

Huỷ chuyến

cancel_booking
DestructiveIdempotent

Cancels a not-yet-started booking in the GOCheap sandbox only when the user explicitly requests cancellation of that specific trip.

Instructions

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.

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": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
booking_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=true, so the risk profile is known. The description adds real value with the eligibility precondition (booking must not have started) and the sandbox qualifier, but says nothing about consequences such as refunds, whether the reason is recorded, or what happens if the booking already started.

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?

Two short sentences with the action and the gating condition front-loaded, and no filler. Nothing could be removed without losing information.

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

Completeness2/5

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

This is an irreversible, destructive mutation with no output schema and zero schema description coverage, yet the description covers only eligibility and the call condition. An agent is left without guidance on the reason argument, the outcome of the call, or error conditions such as an already-started booking.

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

Parameters2/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 parameter meaning and does not: booking_id is only implied by "đúng chuyến này", and the optional reason parameter is never mentioned at all (purpose, free-text nature, 255-char limit).

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?

States a specific verb and resource ("Huỷ một chuyến" = cancel a booking) plus a scope qualifier: only bookings that have not started, in sandbox. It does not explicitly name a sibling such as get_booking or simulate_booking, but the cancel action is unambiguous.

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?

"Chỉ gọi khi người dùng yêu cầu huỷ đúng chuyến này" gives an explicit gating condition: call only when the user asks to cancel this exact booking. It effectively excludes proactive or batch cancellation, though it names no alternative tool for those cases.

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