Skip to main content
Glama

Publish now

publish
Destructive

Post a draft now to every account in it. Call it only after the user said yes to this post. Answers one delivery per account in state queued, which means accepted, not posted: read jobs_get for the outcome and the link to the live post. One call counts as one post on the plan.

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>",
      "version": "<version>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft id.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.
versionYesThe draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see.
idempotencyKeyYesA key you make up for this one request, 8 to 200 characters (a UUID works). Repeating the request with the same key answers the same deliveries and never posts twice, so reuse it after a timeout. A key already used for another draft, version or time is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations declare destructiveHint=true and openWorldHint=true, but the description supplies the non-obvious behavior the annotations cannot: the response is one delivery per account in state queued, meaning accepted rather than posted, and the actual outcome must be polled via jobs_get. It also discloses a billing consequence ("One call counts as one post on the plan"), which is real decision-relevant behavior beyond structured data. Nothing here contradicts the annotations.

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?

Four short sentences, each doing distinct work: what it does, the confirmation gate, the return semantics plus where to look next, and the billing unit. The action and its gate are front-loaded with zero filler.

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?

With no output schema, the description carries the full burden of explaining the response and does so precisely (deliveries queued = accepted, not posted, poll jobs_get). For a destructive, asynchronous, billable operation that is everything an agent needs to call it correctly and interpret the result.

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 every parameter (id, brandId, version, idempotencyKey) already carries a substantive description including refusal and retry semantics. The prose adds no parameter-level detail beyond that, so the baseline 3 applies rather than a higher score.

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?

"Post a draft now to every account in it" gives a specific verb (post), a specific resource (a draft), and the fan-out scope (every account in the draft) in one clause. That scope distinction is what separates it from the sibling editing/holding tools, so an agent can select it without opening a schema.

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?

There is an explicit and unusual precondition: "Call it only after the user said yes to this post," which is exactly the gate an agent needs before invoking a destructive publish. It also names the correct follow-up tool (jobs_get) for outcome and live-post link. It does not contrast with sibling alternatives such as drafts_hold or drafts_validate, which keeps it from a 5.

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.