Skip to main content
Glama

Cancel an offer

cancel_offer
Destructive

Cancel an offer

Ends the offer for good. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.

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": {
      "id": "<id>"
    },
    "name": "cancel_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe offer id.

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 and idempotentHint=false, so the bar is lower. The description still earns credit by stating the effect is permanent ("for good") and by naming the seller-terms precondition and its exact failure mode (403 not_seller), which annotations cannot express.

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?

Two terse sentences, front-loaded with the effect and followed by the precondition. Minor waste in restating the title as a leading header, but nothing else is extraneous.

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 destructive mutation with full annotation coverage and no output schema, the definition supplies the two things that matter: permanence and the authorization failure mode. It stops short of covering repeat-invocation behavior (the 403 vs already-cancelled case) or what is returned on success.

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 is fully documented as the offer UUID, so the schema carries the meaning. The description adds no format, source, or lookup guidance for the id beyond what is already structured. 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 ("Cancel an offer") and adds the decisive qualifier "Ends the offer for good," which separates it in spirit from reversible siblings like pause_offer. It does not name any sibling explicitly, so differentiation still requires the agent to reason from the permanence wording.

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

Usage Guidelines3/5

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

Usage is implied through "Ends the offer for good" rather than stated as a when-to-use rule; nothing tells the agent to prefer pause_offer or discard_offer for reversible cases. The one explicit condition given is an access rule (sellers only, 403 not_seller) rather than a selection guideline.

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