Skip to main content
Glama

Publish an offer

publish_offer
Destructive

Publish an offer

Lists a draft whose health test and identity checks passed: it goes live within about a minute and is checked continuously from then on. Its key needs the seller's statement on record: pass statement (the version from the list_supply_presets tool) to accept it. A draft not ready yet, or a key without the statement, is a 409. 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": "publish_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe offer id.
statementNoThe statementVersion of GET /sell/presets: accepts the seller's statement for the offer's key, if it is not on record yet.
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.

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 already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, yet the description still adds real behavioral context beyond them: live within about a minute, continuous checking afterward, 409 for an unready draft or missing statement, and 403 not_seller for accounts that have not accepted the selling terms. It does not explain why the operation is flagged destructive or what 'goes live' removes/changes, which leaves a gap.

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?

Dense but front-loaded: the operation and its effect appear first, then prerequisites, then failure codes. The leading repetition of the title 'Publish an offer' is the only clear waste; the remaining sentences each carry information.

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 mutating, zero-output-schema tool with three parameters and full annotation coverage, the description covers preconditions, timing, continuous validation, and the two failure modes. What is missing is the result of the call (whether the offer object is returned) and the meaning of the destructive flag.

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 description coverage is 100%, so the baseline is 3. The description earns above baseline by tying `statement` to its source ('the version from the `list_supply_presets` tool'), which the schema only gestures at via 'statementVersion of GET /sell/presets'. The `idempotencyKey` is not discussed in the description at all.

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?

The description states a specific verb and resource and goes further, defining the operation as 'Lists a draft whose health test and identity checks passed' so it goes live. That is far clearer than the title alone. It does not explicitly contrast with siblings such as test_offer or bulk_offer_action, which keeps it from a 5.

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?

Preconditions are explicit: the draft must have passed the health test and identity checks, and the key needs the seller's statement on record. It also names where to obtain the statement ('the version from the `list_supply_presets` tool'). It stops short of telling the agent what to call first when a draft is not ready (e.g. test_offer, get_offer_health).

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