Skip to main content
Glama

Cancel Confirmed Booking

cancel_booking
DestructiveIdempotent
Cancel a confirmed reservation (`booking_id`) in both Vayancy and the property owner's PMS.

When to use:
    - Use ONLY when a reservation has already been confirmed via `create_booking` (you have a `booking_id`) and the guest or property manager requests cancellation.
    - To modify dates or switch villas on an existing confirmed booking, cancel the existing reservation with `cancel_booking` and place a new hold with `create_hold`.
When NOT to use:
    - Do NOT use `cancel_booking` to release an unconfirmed 15-minute inventory hold before booking—use `cancel_hold` with `hold_id` instead.
    - Do NOT use `cancel_booking` just to check whether a booking is active—use `get_booking_details` instead.

Args:
    booking_id:  Vayancy booking ID from create_booking
    reason:      Cancellation reason
    guest_email: Guest email used when booking (required for public ownership verification)

Returns:
    JSON object with `booking_id`, `pms_booking_id`, `success` (boolean), and updated `status` (`"cancelled"` or `"cancel_failed"`).

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
reasonNoOptional reason for cancelling the reservation (recorded in PMS notes).
booking_idYesConfirmed Vayancy booking ID returned by `create_booking`.
guest_emailNoLead guest email address used when booking (required on public sessions to verify ownership before cancellation).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / booking_id / description
      Added value: +"Confirmed Vayancy booking ID returned by `create_booking`."
    • addedInput schema / properties / guest_email / description
      Added value: +"Lead guest email address used when booking (required on public sessions to verify ownership before cancellation)."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason for cancelling the reservation (recorded in PMS notes)."
  2. Changed1 schema field changed
    • addedInput schema / properties / guest_email
      Added value: +{
      +  "default": "",
      +  "title": "Guest Email",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that cancellation affects both Vayancy and the property owner's PMS. It also explains the ownership-verification role of guest_email on public sessions and documents possible returned statuses, cancelled and cancel_failed.

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

Conciseness4/5

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

The description is well structured and front-loads the action, then separates when-to-use, when-not-to-use, args, and returns. The Args and Returns sections are somewhat redundant because the schema and output schema already define those details.

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

Completeness5/5

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

For a destructive cross-system cancellation tool, the description covers the key preconditions, alternatives, external PMS effect, ownership verification, and failure status. With rich schema and output schema present, no critical agent-facing context is missing.

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 description coverage is 100%, so the input schema already carries the parameter meanings. The description's Args section largely repeats that information rather than adding new semantics beyond the schema.

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

Purpose5/5

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

The description states a specific verb and resource: cancel a confirmed reservation in both Vayancy and the property owner's PMS. It also distinguishes the tool from siblings such as cancel_hold, create_booking, and get_booking_details.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance, including the precondition that the reservation is already confirmed via create_booking. It also gives explicit when-not-to-use cases, routing unconfirmed hold release to cancel_hold and status checks to get_booking_details.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources