Skip to main content
Glama

Publish now, or retry

publish_post
Idempotent

Queue every channel of this submission that has not already published — a draft going out now, or the failed half of a partially_published one being retried.

Channels that already published are skipped rather than sent again, which is what makes this safe to call twice: it finishes the job instead of duplicating the part that worked.

Asynchronous. It returns the queued channels as publishing; get_post is where the outcome appears.

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_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe submission id.
idempotencyKeyNoA key of your choosing that makes this call safe to retry: retrying with the SAME key replays the first outcome instead of doing the work twice. Reuse it verbatim on a retry, and never reuse it for a different request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations by explaining the mechanism behind idempotency: already-published channels are skipped rather than resent, so a second call finishes the job instead of duplicating work. It also discloses asynchrony, that the response lists queued channels as `publishing`, and that the real outcome must be read from get_post.

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?

Three short paragraphs, front-loaded with the action, then the retry-safety rationale, then the async/return contract. Every sentence carries information an agent needs; nothing is padded or repeated verbatim from the schema.

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 an async mutation with no output schema, it covers the essentials: what gets queued, what gets skipped, what comes back, and where to look for the result. It omits edge cases such as the behavior when no channels remain to publish or how per-channel failures surface, which keeps it short of fully complete.

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 both parameters, including the idempotencyKey retry contract, are fully documented in the schema itself. The description adds no parameter-level detail beyond that, so the baseline of 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 concrete action ('queue every channel of this submission that has not already published') plus the two scenarios it covers: a draft publishing now and the failed half of a partially_published retry. The agent can tell this apart from revise_post/retract_post and knows get_post is the read counterpart.

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?

Clear context for when to reach for it (fresh draft or retrying a partially_published submission) and implies skips for already-published channels. It does not explicitly exclude alternative routes such as revising or retracting first, nor does it state prerequisites like channel capability checks (get_channel_capabilities), so it stops short of full when/when-not guidance.

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