Skip to main content
Glama

Preview a cancellation

preview_cancel
Read-only

For a signed-in personal AI agent: what cancelling this visit now would do, free or late, and the credits back. Read it, tell the person, then cancel with expectFree set to what it said.

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": "preview_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookingIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered by structured fields. The description adds two useful pieces of context beyond them: the caller is a 'signed-in personal AI agent' (auth prerequisite) and the payload contains fee status and returned credits. However, it discloses nothing about the shape of that payload, and it introduces 'expectFree' — a parameter that does not exist on this tool — which muddies what this call accepts versus what the follow-up cancel call accepts.

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?

Two sentences, no filler, with the critical consequence information front-loaded ahead of the workflow instruction. The opening 'For a signed-in personal AI agent' qualifier is a slightly awkward use of space, and 'free or late' is terse enough to be mildly cryptic, but nothing is redundant.

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

Completeness3/5

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

With no output schema, the description does the right thing by naming the return fields (fee outcome, credits back), and it covers the auth context and follow-up action. But for a one-parameter tool with zero schema documentation, leaving bookingId unexplained and referencing a non-existent expectFree parameter leaves genuine gaps for correct invocation.

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% for the single required parameter bookingId, so the description carries the full burden of explaining it — and it says nothing about what a bookingId is, where to obtain one, or whether it must reference an upcoming versus past visit. Worse, the only parameter-like name it does mention, 'expectFree', is absent from this tool's schema, which risks an agent passing a spurious argument.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states concretely what the tool returns: what cancelling 'this visit now would do', whether it is 'free or late', and 'the credits back' — a real preview of cancellation consequences rather than a restatement of the name. It is implicitly distinguished from the cancel action ('then cancel with expectFree...'), though it never names that sibling explicitly and phrases the purpose as a noun clause rather than an explicit verb+resource.

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 an explicit ordered workflow: read the preview, tell the person, then cancel using the preview's value. That is clear guidance on when this tool is the right call. It stops short of naming the cancel tool outright or stating any when-not condition (e.g. already-cancelled bookings), so it falls just below a 5.

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