Skip to main content
Glama

cancelBooking

Destructive

Cancel a booking. Canceling cannot be undone. It refunds what the booking was paid with when the cancellation falls within the resource's refund policy; pass autoRefund false to cancel without a refund. For one occurrence of a repeating booking, pass its id from getBookings with singleBookings "true", and set deleteRepeatingScope to "thisAndNext" to cancel it and every later occurrence; to cancel the whole series, pass the id without an occurrence date and "thisAndNext". Returns the booking as it was before the cancellation, so it does not show as canceled yet. Get bookingId from getBookings. Never invent UUIDs; only use values from prior tool responses.

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": {
      "bookingId": "<bookingId>"
    },
    "name": "cancelBooking"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookingIdYesID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `<bookingId>_<ISO date>`.
autoRefundNoWhether to refund what the booking was paid with when the cancellation falls within the resource's refund policy.
deleteRepeatingScopeNoFor a repeating booking, whether to cancel only the addressed occurrence or that one and every later occurrence.singleOccurrence

Output Schema

NameRequiredDescriptionDefault
bookingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / booking / properties / request / properties / ticketRef
      Removed value: -{
      -  "description": "ID of the ticket that holds the conversation between the person and the administrators.",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / booking / properties / payments / items / properties / method / properties / paymentGateway / properties / inPerson
      Added value: +{
      +  "description": "Present and true when an administrator took the payment in person with Tap to Pay on their phone, which has no checkout page to complete.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / booking / properties / scheduledPayment / properties / method / properties / paymentGateway / properties / inPerson
      Added value: +{
      +  "description": "Present and true when an administrator took the payment in person with Tap to Pay on their phone, which has no checkout page to complete.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / booking / properties / orderRef / description
      Previous value: -"ID of the shop order for the add-ons bought with the booking. Omitted when the caller has no access."New value: +"ID of the shop order for the cross-sells bought with the booking. Omitted when the caller has no access."
  4. Changed1 schema field changed
    • addedOutput schema / properties / booking / properties / partialRefunds
      Added value: +{
      +  "description": "Shares of the payment refunded when the booking is canceled after refundThreshold has passed, copied from the resource's refund policy when the booking was made. Omitted when there are none.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "percent": {
      +        "type": "number"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "percent",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / booking / properties / orderRef
      Added value: +{
      +  "description": "ID of the shop order for the add-ons bought with the booking. Omitted when the caller has no access.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, it explains that cancellation cannot be undone, when refunds occur, how autoRefund false changes behavior, how repeating scopes work, and that the returned booking reflects its pre-cancellation state. It also explicitly warns against inventing UUIDs.

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 front-loaded with the consequence of cancellation and then covers refund and repeating-booking cases efficiently. It is somewhat dense and repeats some schema-level concepts, but the length is mostly justified for a destructive operation with repeating-series complexity.

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 cancellation tool, it covers irreversibility, refund policy behavior, refund opt-out, repeating occurrence scopes, ID sourcing, and the pre-cancellation return state. Since an output schema exists, the description does not need to enumerate the full return shape.

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 already 100%, so the schema documents bookingId, autoRefund, and deleteRepeatingScope. The description adds useful behavioral meaning for refunds and repeating series, but it also references a 'singleBookings' value that is not present in the input schema, which creates avoidable parameter confusion.

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 opens with a specific verb and resource: 'Cancel a booking.' It immediately distinguishes this from non-cancellation siblings and makes the destructive effect explicit with 'Canceling cannot be undone.'

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 gives clear operational guidance for normal cancellations, single occurrences, and whole repeating series, and directs the agent to get bookingId from getBookings. It does not explicitly compare against cancelEvent or cancelSubscription, but the booking-specific context is clear.

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