Skip to main content
Glama

Schedule or publish a post

create_post
DestructiveIdempotent

Creates ONE post on the given accounts of ONE social group: scheduled for later (scheduled_at), published at once (publish_now: true), or saved as a draft that goes nowhere yet (save_as_draft: true). Exactly one of the three. A post is public and goes to real accounts, so only schedule or publish when the user has given the content, the accounts and the time; when unsure, save a draft and tell the user. Every account gets caption, unless captions_by_account gives it a text of its own (a short one for X, a longer one for LinkedIn). Call get_platform_rules first when you are not sure a caption or the media fits a platform. Platform options go in instagram (story, collaborators, trial reel), facebook (a link post, a story or a reel), x (who can reply, reposts from other X accounts) and tiktok; each applies only to that platform's accounts in the post. Comments: first_comment, then more_comments, each with an optional wait. Safe to repeat: the same caption, accounts, time and media a second time returns the post already made instead of posting twice (set allow_duplicate to really send it again).

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>",
      "account_ids": "<account_ids>"
    },
    "name": "create_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX options, for the X accounts in this post.
coverNoCustom cover for the video on Instagram, Facebook, LinkedIn and Pinterest accounts in this post. Other platforms have no cover option.
tiktokNoTikTok settings. Without this a TikTok post goes out PRIVATE with comments off, so send it for every TikTok post.
captionYesThe post text. Every account gets it unless captions_by_account names that account.
youtubeNoYouTube title, description and thumbnail. No < or > in the title, description or caption of a YouTube post.
facebookNoFacebook options, for the Facebook Pages in this post. Only one of link, story and reel; a Facebook Page must be in account_ids.
timezoneNoIANA timezone name, e.g. Australia/Sydney. Always send it with scheduled_at; never convert to UTC yourself.
instagramNoInstagram options, for the Instagram accounts in this post.
account_idsYesAccount ids from list_accounts. All of them must be in the same social group: one post goes to one group.
publish_nowNotrue = publish immediately. A post with no time is never published unless this is true, so a forgotten time cannot publish by accident.
scheduled_atNoWhen to publish, as local wall-clock time in `timezone`, e.g. 2026-10-20T18:00:00. Must be in the future. Leave out only with publish_now.
first_commentNoPosted under the post right after it publishes, by the same account, on Facebook, Instagram, Threads, X, Bluesky and Mastodon. Other platforms ignore it. get_post shows whether it was posted.
more_commentsNoMore comments after first_comment, in order. On X, Threads, Bluesky and Mastodon each replies to the one before (a thread); on Facebook and Instagram each is its own comment under the post. Needs first_comment. get_platform_rules says how many a platform takes.
save_as_draftNotrue = only save it. Nothing is published or scheduled and no time is given; the platform rules are checked later, when publish_draft sends it. Not together with scheduled_at or publish_now.
media_file_idsNoMedia ids in display order: from import_image (an image by link), or ids of media already in the Sociro library. This server cannot take a file. Leave out for a text post.
allow_duplicateNotrue = create this post even if the identical one was already created. Only when the user asks to post the same thing again.
social_group_idNoThe social group the post is for, from list_accounts. Usually not needed: Sociro works it out from the accounts. Send it when an account belongs to more than one group, or when Sociro asks for it.
captions_by_accountNoA different text for some accounts: { "<account id>": "text" }. Each key must be one of account_ids. Each text is checked against its own platform's limits.
first_comment_media_idsNoX only: library media ids attached to the first comment (photos, or one video or GIF).
more_comments_media_idsNoX only: one list of library media ids per comment in more_comments, same order.
first_comment_delay_minutesNoWait this many minutes after the post publishes before posting first_comment. Leave out to post it straight away.
more_comments_delay_minutesNoOne wait in minutes per comment in more_comments, same order: how long after the comment before it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / facebook / description
      Previous value: -"Facebook options, for the Facebook Pages in this post."New value: +"Facebook options, for the Facebook Pages in this post. Only one of link, story and reel; a Facebook Page must be in account_ids."
    • addedInput schema / properties / facebook / properties / reel
      Added value: +{
      +  "description": "true = post the one video to the Facebook Page as a Reel instead of a plain video post. One video only, no photo. Takes a cover and a first comment like a video.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / facebook / properties / story
      Added value: +{
      +  "description": "true = post the one photo or one video to the Facebook Page as a story. Make it 9:16 (1080x1920): a 4:5 image is zoomed and cut off top and bottom. One file only; several stories are several posts. caption is still required but a story does not show it, and it gets no comment and no cover.",
      +  "type": "boolean"
      +}
  2. Changed11 schema fields changed
    • addedInput schema / properties / facebook
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Facebook options, for the Facebook Pages in this post.",
      +  "properties": {
      +    "link": {
      +      "description": "A web address posted as a link post with a preview card. Text posts only: no media.",
      +      "format": "uri",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / first_comment_delay_minutes
      Added value: +{
      +  "description": "Wait this many minutes after the post publishes before posting first_comment. Leave out to post it straight away.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / first_comment_media_ids
      Added value: +{
      +  "description": "X only: library media ids attached to the first comment (photos, or one video or GIF).",
      +  "items": {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / instagram
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Instagram options, for the Instagram accounts in this post.",
      +  "properties": {
      +    "collaborators": {
      +      "description": "Instagram usernames invited as collaborators on a photo, carousel or reel (not a story). Check each first with check_instagram_collaborator.",
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "story": {
      +      "description": "true = post the media to Instagram as stories, each file its own story in order. A story shows no caption and gets no comment.",
      +      "type": "boolean"
      +    },
      +    "trial_reel": {
      +      "description": "A trial reel, shown to non-followers first: MANUAL = the user shares it to followers by hand, SS_PERFORMANCE = shared when it does well. One video only, no collaborators.",
      +      "enum": [
      +        "MANUAL",
      +        "SS_PERFORMANCE"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / more_comments
      Added value: +{
      +  "description": "More comments after first_comment, in order. On X, Threads, Bluesky and Mastodon each replies to the one before (a thread); on Facebook and Instagram each is its own comment under the post. Needs first_comment. get_platform_rules says how many a platform takes.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / more_comments_delay_minutes
      Added value: +{
      +  "description": "One wait in minutes per comment in more_comments, same order: how long after the comment before it.",
      +  "items": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / more_comments_media_ids
      Added value: +{
      +  "description": "X only: one list of library media ids per comment in more_comments, same order.",
      +  "items": {
      +    "items": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / tiktok / properties / auto_add_music
      Added value: +{
      +  "description": "Photo posts: false sends the photos without music (TikTok adds music by default).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tiktok / properties / cover_timestamp_ms
      Added value: +{
      +  "description": "Video posts: the frame shown as the cover, in milliseconds from the start.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / tiktok / properties / made_with_ai
      Added value: +{
      +  "description": "Show TikTok's \"Made with AI\" label (video posts).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "X options, for the X accounts in this post.",
      +  "properties": {
      +    "reply_settings": {
      +      "description": "Who can reply on X. Leave out for everyone.",
      +      "enum": [
      +        "everyone",
      +        "following",
      +        "mentionedUsers",
      +        "subscribers",
      +        "verified"
      +      ],
      +      "type": "string"
      +    },
      +    "reposter_account_ids": {
      +      "description": "Other X accounts of the same social group (ids from list_accounts) that repost the post once it is out. Never an account the post goes to.",
      +      "items": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint and idempotentHint, and the description adds real value on top by explaining the idempotency mechanism (identical caption/accounts/time/media returns the existing post; allow_duplicate to override) and the publish-safety default that no time means no publish. It also warns that a TikTok post defaults to PRIVATE with comments off. However, side effects generic to posting (irreversibility, whether cancel_post can undo, permission requirements) are left implicit, which keeps this at a solid 3 rather than higher.

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?

Front-loaded with the mode choice and the safety rule, then moves to per-platform options, comments and idempotency in a logical order. Sentences are long and densely packed with parenthetical examples, but for a 22-parameter tool with nested objects the length is largely justified rather than 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?

Covers the three operating modes, required vs optional intent, the draft path linking to publish_draft, the get_platform_rules prerequisite, default behaviors (TikTok privacy, no time means no publish), comment sequencing, and duplicate handling. With a 100%-covered schema and no output schema, an agent has everything needed to call this correctly; return values are implicitly examinable via get_post.

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%, so the baseline is 3, but the description earns more: it establishes the mutual exclusion of scheduled_at / publish_now / save_as_draft ('Exactly one of the three'), explains that captions_by_account overrides the shared caption per account, and states that the instagram/facebook/x/tiktok option blocks apply only to that platform's accounts in the post. It does not restate the many nested field-level semantics (e.g. cover, youtube), which the schema already carries.

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?

Opens with a specific verb and resource and an explicit scope: creates ONE post on the accounts of ONE social group, in one of three named modes (scheduled_at, publish_now, save_as_draft). The three modes are enumerated up front, so an agent knows exactly what the tool produces and can contrast it with publish_draft, which the description implicitly reserves for drafts already saved.

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?

Gives an explicit decision rule with a when-not branch: schedule or publish only when the user has given content, accounts and time, otherwise save a draft and tell the user. It also names a prerequisite tool (call get_platform_rules first when unsure a caption or media fits) and clarifies that save_as_draft defers platform-rule checks to publish_draft.

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