Skip to main content
Glama

Confirm a booking cancellation

confirm_booking_cancellation
DestructiveIdempotent

Cancel the signed-in shopper's prepared Square appointment after approval; requires actions:confirm. Returns state: cancelled and booking_id on success, or an error. An ambiguous provider result requires reconciliation; repeating the intent checks status without another cancellation. OnHand issues no refunds.

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": {
      "intent": "<intent>"
    },
    "name": "confirm_booking_cancellation"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructive/idempotent/openWorld, and the description adds value beyond them: the required auth scope (actions:confirm), the success payload (state: cancelled, booking_id), the error case, the ambiguous-provider reconciliation obligation, and the no-refund policy. That covers consequences, auth, and failure handling that the annotations alone do not convey.

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?

Front-loaded with the action and its precondition, and every clause carries information (auth scope, return values, idempotency, refund policy). It is dense — five semicolon-joined clauses in one paragraph — which slightly hurts scanability, but nothing is filler.

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?

For a destructive one-parameter tool with no output schema, the description supplies return values, error behavior, auth requirement, and idempotency semantics, which is nearly everything an agent needs. The gap is operational: 'requires reconciliation' names no mechanism or tool for reconciling an ambiguous provider result.

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 0% for the single 'intent' parameter, so the description must carry the meaning. It does explain the key semantic — reusing the same intent acts as a status check rather than a second cancellation — but never says what the intent string should contain, its length bounds, or whether it must match the intent used at prepare time.

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 ('Cancel the signed-in shopper's prepared Square appointment') and scopes it with 'prepared ... after approval', which implicitly pairs it with prepare_booking_cancellation rather than confirm_booking or the other confirm_* siblings. An agent can tell what this commits to without opening the schema.

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 precondition ('after approval', 'requires actions:confirm') and a re-entry rule ('repeating the intent checks status without another cancellation'), which tells the agent when calling again is safe versus when it is a new cancellation. It stops short of explicitly naming the sibling to call first (prepare_booking_cancellation) or the status-check tool to use during reconciliation.

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