Skip to main content
Glama

Cancel a request

cancel_request
DestructiveIdempotent

Cancel your request. The history is kept. Example arguments: {"request_id":"req_0123abcd"}

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": {
      "request_id": "<request_id>"
    },
    "name": "cancel_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesRequest id.

Output Schema

NameRequiredDescriptionDefault
idYes
statusYes
delivered_to_businessYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered structurally. The description adds one genuinely non-obvious behavioral fact — "The history is kept" — which tells the agent cancellation is not a hard delete. However, it leaves open what retention means in practice (is the request still visible via get_request?), whether a cancelled request can be reinstated, and what happens to work in flight.

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?

Two short sentences plus a compact example — the action and its most important side effect are front-loaded, and nothing is padded. Every element carries information.

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 one-parameter, non-open-world mutation with an output schema available, the description covers purpose, the key side effect, and identifier format. The remaining gap is state/precondition handling (which requests are cancellable, failure modes), which matters for a destructive operation but is a modest omission at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With a single parameter at 100% schema coverage, the baseline is already 3, and the schema only labels it "Request id." The embedded example {"request_id":"req_0123abcd"} adds real value by revealing the expected identifier format/prefix, which the schema does not convey.

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?

"Cancel your request" gives a specific verb and resource, and the sibling names (create_request, get_request) make the operation's place in the lifecycle obvious. It stops short of explicitly contrasting with alternatives, but an agent can identify the action without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when cancellation is permitted or appropriate — nothing about which request states can be cancelled, whether the caller must be the owner, or what to do if cancellation fails. The only usage-adjacent content is a bare example argument, which is illustrative rather than directive.

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