Skip to main content
Glama

Preview a post or thread

preview_post
Read-onlyIdempotent

Validate exact post content, images, and thread parts for selected accounts before publishing, returning planned parts and errors without posting.

Instructions

Validate exact content and images for each named account. Returns planned thread parts and errors. Does not publish or upload images; Mastodon limits may be fetched.

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>"
    },
    "name": "preview_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.
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

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses that nothing is published or uploaded and that Mastodon limits may be fetched, which explains the openWorldHint network behavior. It also states the return shape (planned thread parts and errors), adding real context the annotations do not cover.

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 sentences, front-loaded with the core action, then the return value, then the negative constraint. No filler or repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be detailed, and the safety profile is covered by annotations. However, for a 9-parameter tool with nested per-account overrides and thread-splitting options, the description leaves the agent without enough to know how overrides and autoSplit interact with the preview.

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 56% across 9 parameters with nested objects. The description only gestures at accountIds ('each named account'), text/media ('content and images') and posts ('thread parts'); it says nothing about overrides, autoSplit, addFooter, article, or firstComment, so it neither compensates for nor extends the schema meaningfully.

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 names a specific action and scope: validate exact content and images for each named account, returning planned thread parts and errors. The clause 'Does not publish or upload images' separates it from publish_post, though it never distinguishes it from the sibling preview_draft.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied — the agent must infer that this is the dry-run step before publish_post or schedule_post. There is no explicit 'use before publishing' instruction and no guidance on when preview_draft would be the better choice.

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