Skip to main content
Glama

Preview a post

preview_post
Read-onlyIdempotent

Render a post as each destination platform will show it — WITHOUT creating anything. Nothing is written, scheduled or published; call create_post afterwards with the same arguments to actually post it. Takes the same arguments as create_post (caption, hashtags, accountIds, mediaIds, type, thread, replyTo, quote, audio, collaborators, reelCover, trialReel, firstComment, title, articleTags, canonicalUrl), and returns the same preview a client with MCP Apps renders as an interactive card, one tab per platform. Use this before create_post whenever the user is composing rather than dictating: it is the cheapest way to show them what goes out, and it reports what would be rejected or silently dropped — a caption over the tightest platform's budget, a platform that requires media when there is none, a thread longer than the strictest limit, audio on a platform with no music API, Instagram collaborators on an account that cannot invite them, a reel cover or trial on a post that is not a reel (or a cover create_post would refuse), a first comment on a story, on a post with no Instagram account, or beside networks that get none, media Bluesky leaves behind (it takes up to four images or one video), and X's own rules — more than one $cashtag in a post, a thread reply @mentioning somebody new to the conversation, the same post on two X accounts, a reply or quote X only takes from an account the target post names, media X leaves behind. The character counts it returns are per platform and authoritative: they are the same ones create_post enforces. For Pinterest, include board (and link/title) too — the preview warns when a Pinterest target has no board, which is the way a Pinterest post most often fails. The board name is taken as given: create_post checks it against the account's boards (see list_boards) and refuses an unknown one before writing anything. A preview reads only this workspace's own accounts and media and calls no social network, so nothing outside Ravenpost is touched or shown to anyone.

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": {
      "caption": "<caption>",
      "accountIds": "<accountIds>"
    },
    "name": "preview_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNoFacebook link card / Pinterest pin destination URL
typeNoInstagram format. Left out, it follows the media: several files CAROUSEL, one video REEL, one photo IMAGE. A format the media cannot be published as (a video as IMAGE, a REEL of photos, a CAROUSEL of 1 or over 10) is refused before anything is written.
audioNoInstagram reel track, for the preview caption line
boardNoPinterest board name or id — pass it so the preview does not warn about a board you already picked
quoteNoX quote: tweet id or URL to embed as a card — X only takes it when that post is the account's own or @mentions it
titleNoThe title, on the networks that show one: the Pinterest pin title (max 100 chars, shown above the description) and the DEV / Hashnode article title (max 128). Defaults to the caption’s first line — and on DEV and Hashnode that line then leaves the article body. Other platforms ignore it.
threadNoFollow-up posts, previewed as the reply chain they publish as
captionYesThe post caption / text body
replyToNoX reply: tweet id or URL the head post replies to — X only takes it when that post is the account's own or @mentions it
hashtagsNoHashtags to append to the caption (with or without a leading #)
mediaIdsNoOrdered media asset ids (from upload_media / list_media)
reelCoverNoInstagram reel cover, as you would pass it to create_post — checked against the media library the way create_post checks it, and drawn on the card.
trialReelNoInstagram trial reel graduation, as you would pass it to create_post.
accountIdsYesTarget social account ids (from list_accounts)
articleTagsNoDEV and Hashnode only: the article’s tags, up to 5 (DEV takes the first 4), kept as lowercase letters and digits ("Node.js" becomes "nodejs"). Not hashtags: no other network gets them — use hashtags for those.
workspaceIdNoWhich workspace to act in — an id from list_workspaces. Optional with a single workspace; REQUIRED once there are several, where guessing would mean posting one client's content to another client's accounts. Ask the user which one before publishing.
canonicalUrlNoDEV and Hashnode only: the address where this article was first published, when it was published somewhere else first. Both platforms then tell search engines the article lives there, so the copy does not compete with its source. Other platforms ignore it.
firstCommentNoInstagram first comment, as you would give it to create_post — drawn under the Instagram caption, and warned about where it would not be posted: a story, a post with no Instagram account, and the other networks, which get no comment.
collaboratorsNoInstagram co-author usernames, as you would pass them to create_post. Nothing in the card draws them — pass them so the preview can warn when the targeted Instagram accounts cannot invite them and they would be dropped.

Output Schema

NameRequiredDescriptionDefault
typeNo
audioNo
mediaNo
postIdNo
statusNo
threadNo
confirmNo
linkUrlNo
targetsNo
pinTitleNo
warningsNo
reelCoverNo
trialReelNo
publishedAtNo
scheduledAtNo
quoteTweetIdNo
replyToTweetIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / type / description
      Previous value: -"Instagram format; defaults to IMAGE"New value: +"Instagram format. Left out, it follows the media: several files CAROUSEL, one video REEL, one photo IMAGE. A format the media cannot be published as (a video as IMAGE, a REEL of photos, a CAROUSEL of 1 or over 10) is refused before anything is written."
  2. Changed3 schema fields changed
    • addedInput schema / properties / articleTags
      Added value: +{
      +  "description": "DEV and Hashnode only: the article’s tags, up to 5 (DEV takes the first 4), kept as lowercase letters and digits (\"Node.js\" becomes \"nodejs\"). Not hashtags: no other network gets them — use hashtags for those.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / canonicalUrl
      Added value: +{
      +  "description": "DEV and Hashnode only: the address where this article was first published, when it was published somewhere else first. Both platforms then tell search engines the article lives there, so the copy does not compete with its source. Other platforms ignore it.",
      +  "type": "string"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"Pinterest pin title"New value: +"The title, on the networks that show one: the Pinterest pin title (max 100 chars, shown above the description) and the DEV / Hashnode article title (max 128). Defaults to the caption’s first line — and on DEV and Hashnode that line then leaves the article body. Other platforms ignore it."
  3. Changed1 schema field changed
    • addedInput schema / properties / firstComment
      Added value: +{
      +  "description": "Instagram first comment, as you would give it to create_post — drawn under the Instagram caption, and warned about where it would not be posted: a story, a post with no Instagram account, and the other networks, which get no comment.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the description's "nothing is written, scheduled or published" largely restates the safety profile. It does add genuinely non-structured context: the preview reads only this workspace's own accounts and media, calls no social network, and shows nothing to anyone. However, the long catalogue of validation warnings describes what the tool reports rather than how it behaves, and with the output schema present the return surface is already documented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The lead sentence and the create_post sequencing are well front-loaded, but the middle is a single sprawling sentence enumerating a dozen-plus rejection cases that the card already surfaces at runtime. The board/Pinterest paragraph repeats the point twice. It is informative but noticeably overlong for a preview tool.

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 19-parameter preview tool with an output schema and full annotation coverage, the description supplies everything an agent needs: the no-write guarantee, the pairing with create_post, the authoritative character counts, and the Pinterest board caveat. Return values are correctly left to the output schema.

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%, so the baseline is 3. The description does add some value — declaring the arguments mirror create_post, and clarifying that board is taken as given and checked by create_post against the account's boards — but it mostly re-lists parameter names already fully documented in the schema.

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?

"Render a post as each destination platform will show it — WITHOUT creating anything" states a specific verb and resource plus a hard scope boundary, and immediately contrasts with create_post. An agent can distinguish it from create_post, publish_post, or get_post without opening any schema.

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?

Explicit sequencing: call this, then call create_post with the same arguments. It names the triggering condition ("whenever the user is composing rather than dictating") and routes to list_boards for the Pinterest board check. Nothing about when to reach for this versus create_post is left to inference.

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.