Skip to main content
Glama

Confita

Withdraw a held request

cancel_pending
Idempotent

For shop owners: withdraw one request waiting for the seller's confirm tap, so nothing it would have done happens. Use it when she changed her mind or the wrong thing was asked for. It never approves anything: only she can, at the confirm link. Returns what is still waiting.

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

Input Schema

NameRequiredDescriptionDefault
action_idYesThe held request to withdraw, by the `action_id` its reply or review_pending gave.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
outcomeNo
pendingNo
timezoneNo
cancelledNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, idempotent mutation; the description adds the key semantic detail that the pending action is prevented from ever taking effect and that approval authority stays with the seller. That authorization model and the 'nothing happens' effect are context the annotations cannot express. It does not discuss failure modes (e.g. what happens if the request was already confirmed).

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?

Three short sentences, front-loaded with the audience and the action, then the trigger conditions, then the guardrail. Every clause carries information; nothing is redundant.

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?

With a full schema, an output schema, and annotations covering the safety profile, the description supplies the missing pieces: who may act, when to use it, and what effect withdrawal has. Only edge-case behavior (already-confirmed or expired requests) is absent, which is minor for a two-parameter tool.

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 description coverage is 100%, and both parameters are documented in-schema, including where action_id comes from and the request_id retry semantics. The prose adds only the framing 'one request waiting for the seller's confirm tap', so baseline 3 applies.

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?

States a specific verb and resource: withdrawing a single held request that is waiting for the seller's confirm tap, and pins the effect ('so nothing it would have done happens'). It also separates itself from approval ('It never approves anything: only she can, at the confirm link'), so an agent can tell it apart from confirm_action. It does not explicitly contrast with the similarly named cancel_order, leaving that boundary to inference.

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 two concrete triggers: the owner changed her mind, or the wrong thing was requested. The 'never approves' clause implicitly routes approval to the confirm link rather than this tool. No explicit when-not list or negative examples, but the usage context is clear enough to act on.

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