Skip to main content
Glama

Social media studio

Create Post

create_post
Destructive

Create a text, image, or video post with uploaded media file IDs. Omitting scheduledAt publishes immediately. A DEV_TO post requires metaData.devToTitle; ask the user for the article title if they have not given one. Text over the platform limit (X 280 weighted, Bluesky 300, Threads/Mastodon 500, Instagram 2200, TikTok 2200 video / 4000 photo, YouTube title 100 …; full list in metaData) is rejected with 400 before anything is saved. For a multi-post chain on TWITTER, THREADS, BLUESKY or MASTODON, put the head post in text and the following posts in threadParts. Pass firstComment to auto-post a comment under the post on the platforms that support one. A TikTok post requires the tiktok object with a privacyLevel the creator is allowed to use (get_tiktok_creator_info returns the allowed values); a TikTok post without tiktok.privacyLevel is rejected with a 400. Media is checked against the destination's rules when the post is created: a video not yet measured is measured first (up to a minute), and a file the platform cannot take (too long, too large, wrong type or shape) is refused before anything is saved; the error starts with one plain sentence per problem (for example "X takes videos up to 20 minutes; this one is 52 minutes. Trim it or leave X out.") that you should relay to the user as it is, followed by the structured report. If the length still could not be measured, the post is created with a MEDIA_NOT_CHECKED warning: tell the user right away that the platform may still refuse it.

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": {
      "text": "<text>",
      "socialMedia": "<socialMedia>"
    },
    "name": "create_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPost content text. With threadParts, this is the head post of the chain. Held to the platform's caption limit (see metaData). On YOUTUBE it is the video title (at most 100 characters) unless metaData.title is set.
tiktokNoTikTok only: the publishing options TikTok requires. TikTok rejects a post that has no privacy level, so this object is required on every TikTok post. privacyLevel is limited to the values get_tiktok_creator_info returns in privacy_level_options for the account (a private account cannot use PUBLIC_TO_EVERYONE). Duet and stitch default to on. Any non-TikTok target rejects this field with an error.
fileIdsNoOrdered media library file IDs from presign_media_upload or list_media. Upload the actual bytes with HTTP PUT first. Use a matching postType. On update, replaces all attachments; [] clears them.
metaDataNoPlatform-specific publishing options. Required per platform: DEV_TO needs devToTitle (the article title, up to 128 characters not counting spaces; text is the Markdown body, at most 800 KB; optional devToTags, comma-separated, up to 4). DEV_TO cannot carry a video: a video post there publishes the article without the video and answers with a VIDEO_LEFT_OUT warning. PINTEREST needs boardId (from list_pinterest_boards). REDDIT needs subreddit and redditTitle. WORDPRESS needs wpTitle. SLACK needs slackChannelIds (from list_slack_channels). A post without its required key is rejected before it is saved: ask the user for it (for example the Dev.to article title) rather than making one up. Caption (text) limits, refused with 400 before the post is saved: TWITTER 280 weighted (links 23, emoji 2); BLUESKY 300 graphemes and 3000 bytes; THREADS 500 (emoji count as UTF-8 bytes), at most 5 links; MASTODON 500 graphemes (each link counts 23, @user@domain counts as @user, metaData.mastodonContentWarning counts too); INSTAGRAM 2200, at most 30 hashtags and 20 @mentions; TIKTOK 2200 for a video, 4000 for a photo post; FACEBOOK 63206; LINKEDIN 3000; PINTEREST 800 (metaData.title 100); DISCORD 2000; GOOGLE_MY_BUSINESS 1500; REDDIT 40000 (metaData.redditTitle 300); DEV_TO text (the body) at most 800 KB (819200 bytes), metaData.devToTitle 128 not counting spaces; DRIBBBLE at most 12 metaData.tags; YOUTUBE: the title is metaData.title, or text when metaData.title is unset, at most 100 characters and no < or >; the description at most 5000 bytes. A title is never made from the caption. GET /post/platform-rules lists them. A post over a limit is rejected with 400 (TEXT_TOO_LONG, TITLE_TOO_LONG, YOUTUBE_TITLE_TOO_LONG, YOUTUBE_TITLE_INVALID_CHARS, YOUTUBE_DESCRIPTION_TOO_LONG, TOO_MANY_HASHTAGS, TOO_MANY_MENTIONS, TOO_MANY_LINKS): shorten the text or ask the user, never cut it yourself without saying so. For YouTube explicitly set visibility to private, unlisted or public; privacyStatus is an accepted alias. Optional title and description override the text fallback. Conflicting or invalid visibility values fail without uploading.
postTypeNoPost type (default: TEXT). Match the media: one video is VIDEO (or REEL), one picture IMAGE, several pictures MULTIPLE_IMAGES (CAROUSEL on Instagram, Threads and LinkedIn). Pictures and videos together only as an Instagram or Threads CAROUSEL; other platforms cannot mix them (MIXED_MEDIA), so post the video separately.
accountIdNoSocial account to post from — accepts either the platform accountId or the account UUID from list_accounts. Optional when exactly one account is connected for the platform.
descriptionNoYouTube video description (at most 5000 bytes), separate from the title. An empty string clears it.
scheduledAtNoISO date string for scheduling (must be future)
socialMediaYesTarget social media platform
threadPartsNoA multi-post chain: the posts that follow the head post, in order. Supported platforms only: TWITTER, THREADS, BLUESKY, MASTODON. The post's own `text` is the head post, so threadParts[0] is the FIRST REPLY, not the head. A 3-post chain is text plus 2 thread parts. Limits: 24 parts everywhere, and per platform TWITTER 280 characters / 4 media, THREADS 500 characters / 20 media, BLUESKY 300 graphemes / 4 media, MASTODON 500 characters / 4 media. BLUESKY counts GRAPHEMES, not characters, so one emoji is one unit there. Each part is an object { text, fileIds }; a plain string is accepted and read as { text }. A part needs text or fileIds, or both. Any other target rejects this field with an error — for those platforms put the whole message in text. Omit the field for a single post; pass [] to clear an existing chain. Publishing is best effort past the head: if a part fails the head stays live, the ids that did publish are kept, and the post carries a warning saying how many parts published.
firstCommentNoOne comment posted automatically under the post right after it publishes — usually hashtags or a link. Supported platforms only: FACEBOOK, INSTAGRAM, TWITTER, YOUTUBE, BLUESKY, MASTODON. Per-platform character limits: FACEBOOK 8000, INSTAGRAM 2200, TWITTER 280, YOUTUBE 10000, BLUESKY 300, MASTODON 500. Over the limit is a 400. A target that does not support a first comment is NOT rejected: the post publishes there without the comment and the response carries a warning { code: "FIRST_COMMENT_UNSUPPORTED", platforms: [...] }. With threadParts the comment goes under the LAST part of the chain, not the head post. Omit the field to leave an existing comment untouched; pass "" to clear it. Delivery is tracked on the post as firstCommentStatus (pending, posted, failed, skipped).

Output Schema

NameRequiredDescriptionDefault
idYes
fileNo
textNo
shareIdNo
metaDataNo
postTypeYes
shareUrlNo
warningsNo
accountIdNo
createdAtNo
updatedAtNo
postStatusYesCurrent status; queued/scheduled does not mean published.
descriptionNo
scheduledAtNo
socialMediaYes
failureReasonNo
firstCommentErrorNo
firstCommentStatusNoDelivery of the automatic first comment: pending, posted, failed or skipped. Null when the post has none.
firstCommentPostedAtNo
firstCommentPlatformIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint/openWorldHint; the description discloses far more: length checks reject with 400 before anything is saved, unmeasured video is measured first (up to a minute), unprocessable media is refused pre-save with a plain-sentence error to relay verbatim, and MEDIA_NOT_CHECKED lets a post through with a warning. It also warns that thread publishing is best-effort past the head, so partial publication is possible.

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?

It is front-loaded with purpose and the highest-impact rules first, and nearly every sentence carries operative detail. However, it is a dense wall of prose that repeats the per-platform character limits already stated in the metaData schema description, and the TikTok privacy requirement is stated twice, so there is avoidable redundancy.

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 an 11-parameter tool with nested objects and cross-platform variability, the description covers the failure modes an agent must handle: required per-platform metaData keys, text limits, TikTok privacy gating, mixed-media rejection, and thread first-comment placement under the last part. An output schema exists, so return shapes need not be explained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema itself is unusually rich, but the description still adds meaning beyond it: omitting scheduledAt publishes immediately, text is the head post when threadParts is present, threadParts[0] is the first reply not the head, and a TikTok post without tiktok.privacyLevel is rejected with 400.

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?

The first sentence names a specific verb and resource with scope: 'Create a text, image, or video post with uploaded media file IDs.' It immediately distinguishes this from scheduling (schedule_post) and drafting siblings by stating 'Omitting scheduledAt publishes immediately', so an agent knows this publishes live rather than staging content.

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?

It gives explicit conditional routing throughout: devToTitle is required for DEV_TO, tiktok.privacyLevel is required for TikTok (with get_tiktok_creator_info named as the source of allowed values), threadParts applies only to TWITTER/THREADS/BLUESKY/MASTODON, and firstComment only to six named platforms. It also states what to do when blocked ('ask the user for the article title' rather than inventing one).

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