Skip to main content
Glama

Sign and publish

publish_listing
Idempotent

Signs the seller declaration and puts one of the person's draft listings up for sale on agentPickup's marketplace for 30 days, where buyers can find, ask about, offer on and buy it. Only the listing card calls this, when the person ticks the declaration and presses Sign and publish: it's hidden from assistants, so a person always signs for themselves (where the card can't be shown, email_publish_link emails them a page to sign instead). The person must be signed in, set up to be paid (start_selling), and the listing needs a photo. A listing that mentions something checked by hand (food, knives, batteries, recalls) is held for agentPickup's check, usually within a day, instead of going straight up. Returns the listing card.

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": {
      "listing_id": "<listing_id>",
      "declaration_version": "<declaration_version>",
      "confirmed": "<confirmed>"
    },
    "name": "publish_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedYesAlways true: the person ticked the declaration.
listing_idYesThe draft listing's id (lst_...), from the card.
declaration_versionYesThe version of the seller declaration the person ticked, as the card shows it. An old version is refused, so they read the current one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / confirmed / description
      Added value: +"Always true: the person ticked the declaration."
    • addedInput schema / properties / declaration_version / description
      Added value: +"The version of the seller declaration the person ticked, as the card shows it. An old version is refused, so they read the current one."
    • addedInput schema / properties / listing_id / description
      Added value: +"The draft listing's id (lst_...), from the card."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, idempotent, non-destructive write), the description discloses the 30-day listing duration, the manual-review hold for hand-checked categories (food, knives, batteries, recalls) with a typical one-day turnaround, the assistants-hidden constraint, and that it returns the listing card.

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 core action and effect, and the parenthetical about email_publish_link is genuinely useful rather than filler. It is dense with multi-clause sentences, so it is slightly heavier than needed, but no sentence is wasted.

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 3-parameter mutation with no output schema, the description covers preconditions, the manual-review path, the review timeframe, and the return value (the listing card). Nothing an agent needs in order to decide whether to call it is missing.

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 each field already documents itself, including that confirmed is always true and that an old declaration_version is refused. The description adds only indirect context (the listing must be a draft and must have a photo), which is precondition information rather than added meaning for the three parameters.

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 pair and resource: signs the seller declaration and publishes a draft listing to the marketplace for 30 days, with the downstream effects (buyers can ask, offer, buy). This is clearly distinguishable from siblings like create_listing, end_listing, and email_publish_link.

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?

Explicitly scopes who calls it (only the listing card, on the person ticking the declaration and pressing Sign and publish) and names the fallback (email_publish_link when the card can't be shown). It also lists the three preconditions: signed in, set up via start_selling, and a photo on the listing.

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.