Skip to main content
Glama

Cancel a booking or request

cancel_booking
DestructiveIdempotent

Cancels the person's own booking or service request, under the same rules as the cancel button on their page (a booking can be canceled online until its start time; a request until work has started; canceling a booking under 2 hours before the start can carry a late-cancellation fee). It can't be undone: confirm with the person first and pass confirm: true. Needs their private link.

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": {
      "confirm": "<confirm>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoInstead of link: the reference, e.g. SR-AB12CD
codeNoInstead of link: the token= or t= value from that link
linkNoThe person's private link: the manage link from a booking email (…/manage.html?ref=…&token=…) or the status link from a request email (…/requests/SR-…?t=…; request_service returns it as status_url)
reasonNoWhy, in the person's words (optional)
confirmYestrue once the person has said to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond annotations that already mark this as destructive and idempotent, the description explicitly says the action cannot be undone, requires confirmation with the person, and requires passing confirm: true. It also discloses the private-link requirement and the late-fee condition.

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?

The description is front-loaded with the action and scope, then efficiently covers eligibility, irreversibility, confirmation, and the private-link requirement. Every sentence carries operational meaning without repetition.

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 with no output schema, the description covers the essential context: what can be canceled, when it can be canceled, the late-fee risk, irreversibility, confirmation requirements, and the private link. Nothing material is missing for an agent to call it correctly.

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 schema already documents all five parameters in detail, including link, ref, code, reason, and confirm. The description reinforces the confirm requirement and private-link need but does not add syntax or format details 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: cancels the person's own booking or service request. It distinguishes the action from related sibling tools by scoping it to cancellation and referencing the rules of the cancel button.

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 eligibility conditions: online cancellation is allowed for a booking until its start time and for a request until work has started. It also notes the late-cancellation fee under 2 hours and the need to confirm first, though it does not name alternative tools for cases where cancellation is not allowed.

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