Skip to main content
Glama

Samuelz® Communications

Cancel a pending reply operation

cancel_reply
Idempotent

Cancel only an existing unstarted reply operation when explicitly asked to stop it. Pass its exact operationId from preparation/list_reply_operations, not a communicationId. Read get_operation first and after any uncertainty; cancellation cannot undo provider submission or terminal delivery. Discard a pending unstarted reply approval when the user asks to abandon it. Copy the existing operationId from the preparation or list_reply_operations; current operator:prepare and Communications read authority and the original workspace/grant remain required. Returns the stored operation status; an already cancelled operation is safe to inspect again. Processing, submitted or ambiguous operations cannot be recalled or retried: read get_operation instead. Cancellation sends no message and cannot undo a provider submission or resolve the customer request.

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": {
      "operationId": "<operationId>"
    },
    "name": "cancel_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationIdYesUUID of this current-grant reply operation from prepare_reply, prepare_email, list_reply_operations or the approval card. Copy unchanged; never use a communicationId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / operationId / description
      Added value: +"UUID of this current-grant reply operation from prepare_reply, prepare_email, list_reply_operations or the approval card. Copy unchanged; never use a communicationId."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: cancellation cannot undo provider submission or terminal delivery, sends no message, does not resolve the customer request, requires operator:prepare and Communications read authority plus the original workspace/grant, and is safe to inspect again if already cancelled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and clear, but the description repeats key points: the operationId source appears multiple times, "cannot undo provider submission" is stated twice, and the abandon/discard guidance restates cancellation. It remains readable but is longer and more repetitive than necessary for a one-parameter tool.

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 single-parameter mutation with no output schema, the description covers the critical context: eligibility constraints, authorization requirements, the correct identifier source, idempotency behavior, and what to do for ineligible operations. Nothing essential for correct invocation is missing.

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 coverage is 100%, and the schema already documents that operationId is a UUID from prepare_reply, prepare_email, list_reply_operations, or the approval card and must never be a communicationId. The description reinforces this but adds no new syntax or format meaning 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: "Cancel only an existing unstarted reply operation when explicitly asked to stop it." It also narrows the scope to unstarted operations, which clearly distinguishes this from get_operation and list_reply_operations.

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?

It gives explicit when-to-use guidance ("when explicitly asked to stop it"), when-not-to-use guidance ("Processing, submitted or ambiguous operations cannot be recalled or retried"), and directs the agent to read get_operation first and after uncertainty. It also names preparation/list_reply_operations as the source of the operationId.

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