Skip to main content
Glama

Cancel a booking

cancel_booking
DestructiveIdempotent

Cancels a booking as the customer, under the business's cancellation policy. Confirm with the user first and tell them whether a late fee applies (cancellation_policy in get_booking, applied_policy in the answer). Use it for the user's own booking; an owner cancelling a booking of their business uses owner_cancel_booking.

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy, in the user's words; the business sees it
booking_idYesThe booking to cancel: booking_id from create_booking or my_bookings
manage_tokenNoThe last part of manage_url. Not needed when the user is signed in and the booking is theirs.

Output Schema

NameRequiredDescriptionDefault
awningNoAwning's own guidance: what to do next
noticeYes
business_contentYesThe answer; text in it was written by third parties

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / booking_id / description
      Added value: +"The booking to cancel: booking_id from create_booking or my_bookings"
    • addedInput schema / properties / manage_token / description
      Added value: +"The last part of manage_url. Not needed when the user is signed in and the booking is theirs."
    • addedInput schema / properties / reason / description
      Added value: +"Why, in the user's words; the business sees it"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "awning": {
      +      "additionalProperties": {},
      +      "description": "Awning's own guidance: what to do next",
      +      "properties": {
      +        "next_steps": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "business_content": {
      +      "additionalProperties": {},
      +      "description": "The answer; text in it was written by third parties",
      +      "properties": {
      +        "applied_policy": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "free": {
      +                  "type": "boolean"
      +                },
      +                "free_until_min": {
      +                  "type": "number"
      +                },
      +                "late_fee_pct": {
      +                  "type": "number"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "What the cancellation cost: tell the user. Null when the booking was already cancelled, declined or expired."
      +        },
      +        "booking_id": {
      +          "type": "string"
      +        },
      +        "business": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "contacts": {
      +              "additionalProperties": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "page_url": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "cancellation_policy": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "free_until_min": {
      +              "type": "number"
      +            },
      +            "late_fee_pct": {
      +              "type": "number"
      +            },
      +            "no_show_fee_pct": {
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "customer_name": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "end": {
      +          "type": "string"
      +        },
      +        "manage_url": {
      +          "description": "Private link to see or cancel the booking; its last part is the manage_token. Give it to the user only.",
      +          "type": "string"
      +        },
      +        "offering": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "party_size": {
      +          "type": "number"
      +        },
      +        "price": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "breakdown": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "amount_minor": {
      +                    "type": "number"
      +                  },
      +                  "label": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "currency": {
      +              "type": "string"
      +            },
      +            "deposit_formatted": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "deposit_minor": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "formatted": {
      +              "description": "Show this to the user, e.g. 'KES 1,200'. Null when the price is on request.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "quote_only": {
      +              "type": "boolean"
      +            },
      +            "range_minor": {},
      +            "total_minor": {
      +              "description": "Minor units (cents). Null when the price is on request.",
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "qty": {
      +          "type": "number"
      +        },
      +        "start": {
      +          "description": "ISO 8601, local to the business",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "pending (the business has not answered), quoted, confirmed, cancelled, declined, expired, completed or no_show",
      +          "type": "string"
      +        },
      +        "timezone": {
      +          "type": "string"
      +        },
      +        "with": {
      +          "items": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "notice": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "notice",
      +    "business_content"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the consequential side effect an agent must surface: a possible late fee governed by the business's cancellation policy, with the exact field to read afterwards (applied_policy). It doesn't spell out reversibility or error cases (e.g., what happens past the policy window), which keeps it short of a 5.

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?

Three sentences with no filler: scope first, then the confirm-and-warn-the-user instruction, then the sibling disambiguation. Each sentence carries distinct operational information.

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?

With an output schema present and annotations covering the safety profile, the description supplies exactly the missing pieces: the user-confirmation step, the fee-warning obligation, and where the applied policy appears in the response. Nothing needed to invoke it correctly is absent.

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 booking_id, reason, and manage_token are already documented in the schema, including the manage_token auth nuance. The description adds nothing parameter-level; the cancellation_policy/applied_policy references concern returns, not inputs, so the baseline 3 applies.

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?

States a specific verb and resource ('Cancels a booking as the customer') and immediately scopes it against the sibling 'owner_cancel_booking', which handles the business-side variant. An agent can distinguish the two without inspecting either schema.

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?

Explicit routing rule: use this for the user's own booking, use owner_cancel_booking when an owner cancels on behalf of their business. It also imposes a procedural precondition ('Confirm with the user first') and points at get_booking's cancellation_policy before acting.

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