Skip to main content
Glama

Publish with DotShare

publish_post
Idempotent

Publishes user-approved text, images, threads, or articles to chosen social accounts with per-account overrides. Returns receipts and uses stable retry IDs for uncertain results.

Instructions

Publish only when the user explicitly asks to publish this content to these accounts. Supports images, explicit/automatic threads and per-account overrides. Use a stable requestId and reuse it on any retry. Returns per-account receipts; needs_review/running must never be retried with a fresh ID automatically. A failed result sent nothing (or only the first thread parts) and can be retried with the same requestId.

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": {
      "accountIds": "<accountIds>",
      "requestId": "<requestId>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
mediaNo
postsNoExplicit thread parts. Supported by X, Bluesky and Mastodon.
articleNo
addFooterNoSet false to leave out the accounts' saved footers (shown by list_accounts) for this post.
autoSplitNoSplit long text into numbered threads on supported platforms. Preview shows exact parts.
overridesNoOptional content override per account ID.
requestIdYesStable unique ID for this user-authorized action. Reuse it on retries; never change it to bypass an uncertain result.
accountIdsYes
firstCommentNoLinkedIn only: posted as the first comment right after the post, e.g. the article link. Ignored on other platforms.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, yet the description adds genuinely non-obvious behavior: reuse a stable requestId on retries, never auto-retry needs_review/running with a fresh ID, and a failed result means nothing (or only the first thread parts) was sent. That partial-failure and idempotency contract is the highest-value information for this tool and cannot be inferred from 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five dense sentences, front-loaded with the authorization gate, then escalating to retry safety — every sentence carries a distinct rule. There is minor duplication with the requestId schema description, but nothing is padded.

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 10-parameter, nested, open-world publish operation with an output schema, the description covers the two decisions that matter: whether I am authorized to publish, and how to retry safely. Return shape is handled by the output schema, so omitting detail there is correct.

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?

With 60% schema coverage, several parameters already carry descriptions (requestId retry semantics, autoSplit, overrides, firstComment), and the description roughly maps to those concepts — images for media, explicit threads for posts, automatic threads for autoSplit. It adds little for the remaining parameters (article, addFooter) and does not clarify the interaction between text/posts/overrides, so it sits at the baseline rather than above it.

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 — publishing content to a set of accounts — and enumerates the content forms it accepts (images, explicit/automatic threads, per-account overrides). It distinguishes the tool from draft/schedule siblings only implicitly through the word 'Publish', never naming an alternative, so it falls short of the top band.

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?

It gives an explicit gating condition — 'Publish only when the user explicitly asks to publish this content to these accounts' — which is precisely the when-to-use rule an agent needs. It does not, however, point to preview_post, schedule_post, or publish_draft as the alternative path for those cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.