Skip to main content
Glama

Prepare a booking cancellation

prepare_booking_cancellation

Stage cancellation of a Square appointment OnHand created for this signed-in shopper; requires actions:prepare. Checks policy and cutoff; returns state, intent, booking_id, expires_at, cutoff and consequence, or an error. Obtain approval before confirming. No upstream cancellation or refund occurs in this call.

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>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "prepare_booking_cancellation"
  }
}

Input Schema

NameRequiredDescriptionDefault
booking_idYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial context beyond annotations: scope requirement, policy/cutoff evaluation, the returned fields (state, intent, expires_at, cutoff, consequence), and the crucial guarantee that no upstream cancellation or refund happens here. Minor gap: with idempotentHint=false yet a mandatory idempotency_key, the description never explains retry/replay semantics.

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 staging/no-side-effect guarantee and the required scope are front-loaded, and the return enumeration is compressed into a single clause. No sentence is filler, even at this density.

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

Completeness4/5

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

No output schema exists, so enumerating the return fields is exactly the right compensation, and the side-effect disclaimer plus approval gate cover the main risks of a mutation tool. The only real hole is documentation of the two required inputs.

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 both parameters, but it explains neither. 'booking_id' appears only among return fields, and 'idempotency_key' is never mentioned, leaving the agent to guess constraints like the 8-200 character range and UUID format.

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 object ('Stage cancellation of a Square appointment OnHand created for this signed-in shopper'), scoping it to the caller's own booking. The 'stage' framing immediately separates it from confirm_booking_cancellation in the sibling list.

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?

Gives a clear workflow context: check policy/cutoff, then 'Obtain approval before confirming', which implies the confirm_booking_cancellation step. It also states the required scope 'actions:prepare'. It stops short of naming the follow-up sibling explicitly, so an agent must infer the pairing.

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