Skip to main content
Glama

Cancel Approval

cancel_approval
DestructiveIdempotent

Cancel a pending approval request that is no longer needed, for example because the agent changed plans or the operation already happened. The approval Push Notification is removed from the user's devices, the review screen shows it as cancelled so the user can no longer decide, and any wait_for_approval call returns the cancelled state. Only pending requests change; for an approval that is already decided, timed out, or cancelled, this returns its current state unchanged. Do not cancel to retry; use wait_for_approval to keep waiting. Returns the approval's resulting state.

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": {
      "approval_id": "<approval_id>"
    },
    "name": "cancel_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
approval_idYesapproval_id returned by request_approval.

Output Schema

NameRequiredDescriptionDefault
approvalYes
next_actionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description goes beyond them by naming concrete effects: the push notification is removed from devices, the review screen becomes undecidable, and any wait_for_approval returns the cancelled state. That side-effect disclosure is exactly the context annotations cannot convey; only minor gaps remain (no mention of auth or error cases).

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 the reason, then the effects, then the exclusion rule. The closing sentence "Returns the approval's resulting state" is largely redundant given a dedicated output schema, making it the one sentence that does not fully earn its place.

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 an output schema, the description covers purpose, preconditions, side effects, no-op semantics, and the sibling alternative. Nothing an agent needs to invoke it correctly is absent.

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 single parameter already documents that approval_id comes from request_approval, so the description need not repeat it. The description adds no format or lookup detail beyond the schema, which is the expected baseline for a fully covered one-parameter tool.

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 a pending approval request") with the scope qualifier "pending", which immediately separates it from get_approval/list_approvals. The example motivation (agent changed plans or operation already happened) further pins down intent.

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?

Gives an explicit when (request no longer needed), an explicit when-not ("Do not cancel to retry; use wait_for_approval to keep waiting"), and a state precondition (only pending requests change; decided/timed-out/cancelled requests are returned unchanged). All three routing signals an agent needs are present.

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