Skip to main content
Glama

Cancel a request

cancel_request
Destructive

Cancel an approval request the user submitted. Stops the approval process and notifies approvers. Confirm with the user first. Two-step: call with confirmed=false (the default) first for a preview with NOTHING cancelled yet; call again with confirmed=true to cancel it. A confirmed=true call with no matching preview from this connection in the last 10 minutes is run as the preview instead, and writes nothing. One preview admits one attempt, so a call that fails needs a new one. If the server cannot reach its preview store it does not hold the call back, so always preview first regardless. A preview also lapses once the request changes, someone else's decision on it included, so the next call previews it again.

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

Input Schema

NameRequiredDescriptionDefault
confirmedNofalse (default) returns a preview of what would be cancelled and does NOTHING. true cancels it. Preview, show the user, wait for their yes, then call again with true.
ar_identifierYesThe approval request to cancel — friendly number like 'AR-15' / '15' or the internal integer id.

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?

Goes well past the annotations (destructiveHint=true, idempotentHint=false) by disclosing what actually happens: the approval process stops and approvers are notified. It also documents non-obvious state-machine behavior — the 10-minute preview window, one-preview-per-attempt, preview lapse on request change, and the fail-open behavior when the preview store is unreachable — none of which appear in structured fields.

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 purpose, then the confirm-then-preview procedure, then edge cases. Dense but nearly every sentence carries a distinct rule. Minor redundancy between 'call with confirmed=false first' and 'always preview first regardless', and the closing sentence on preview lapse is tacked on rather than grouped with the other preview rules.

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?

A destructive, non-idempotent mutation with no output schema — exactly the case where the description must carry the burden. It covers the safety protocol, failure recovery, and the fallback semantics, leaving no significant gap for an agent to guess at.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: a confirmed=true call with no recent matching preview is downgraded to a preview, and a preview is consumed by a single attempt. Those rules materially change how an agent should sequence the two calls.

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?

Opens with a specific verb+resource and a scope qualifier: 'Cancel an approval request the user submitted.' The 'the user submitted' phrasing implicitly separates it from reject_request/approve_request (approver-side decisions), but no sibling is named explicitly, so an agent must infer the boundary.

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 clear operational context: confirm with the user first, then preview, then confirm. It does not state when to prefer cancel_request over reject_request or update_request, but for a destructive tool the 'when' is largely self-evident from the purpose and the procedural guidance is strong.

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