Skip to main content
Glama

Discard a draft offer

discard_offer
DestructiveIdempotent

Discard a draft offer

Deletes a draft that never went live; a listed offer is cancelled instead (the cancel_offer tool). 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": "discard_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe offer id.

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, idempotentHint=true and readOnlyHint=false, so the mutation profile is covered; the description adds genuinely new context by scoping the operation to never-published drafts and disclosing the 403 not_seller failure mode for accounts that haven't accepted selling terms. It stops short of saying whether the discarded draft's data is recoverable, which would have made it a 5.

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 sentences, front-loaded with the action and its scope, followed by the alternative-tool routing and the permission caveat. No filler or restatement of the title beyond the necessary scope qualifier.

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 no output schema, the definition covers scope, the sibling alternative, and the main authorisation failure. Only the post-deletion state (recoverability, what remains of the offer) is left unstated.

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?

Only one parameter (`id`, a UUID) and schema coverage is 100%, so the schema already fully documents it as "The offer id." The description adds nothing about the identifier itself, so baseline 3 applies.

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 ("Discard a draft offer") plus the exact state constraint ("a draft that never went live"), and names the sibling to use for the other case (cancel_offer for a listed offer). An agent can distinguish it from cancel_offer without opening either schema.

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 both the when (draft never went live) and the when-not with the explicit alternative tool (`cancel_offer` for a listed offer). It also states the caller precondition (sellers only), so routing decisions need no further inference.

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