Skip to main content
Glama

Write and schedule a post

posts_create
Destructive

PUBLISHES CONTENT: puts a post you wrote on the rail for one connected account (connections_list), or with group for every account of a group (posts_setup lists groups and their defaults; the answer's posts lists each account's post, id and status are the first's), at a time, in the account's next free queue slot, or now. Optional tags, a saved signature, repeatEveryDays and shortenLinks. Read platforms_list first for the platform's limits and settings schema. Free plan: 10 posts a day and 60 a month, and X only once a day without links, because X bills per post (402 free_daily_cap / free_monthly_cap / free_x_daily_cap / free_x_link carry the reset time and what to do instead). Once a limit is near the answer carries posting.notice: tell the human in one line before posting more. A post whose attempt failed for a passing reason (the platform or a relay did not answer) answers status scheduled with willRetry true, scheduledAt (when we try again) and error (why this attempt did not go out): it is queued, so do not post it again. Needs the publish scope.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "posts_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTag names or ids (posts_setup); a new name becomes a tag.
textNoThe post text. Markdown on DEV, Hashnode, WordPress, Tumblr and Listmonk, where it is an article or a newsletter.
audioNoInstagram Reels only (exactly one video): a platform sound Instagram attaches at publish, by id from instagram_audio_search. Needs the Instagram account connected through Facebook Login; otherwise a 409 carries the connect link.
groupNoInstead of connectionId: a group's id or name. One post per connected account in it, from the group's defaults; text may be omitted when the defaults carry it. Nothing is written unless every account's platform accepts it.
plugsNoUp to 5 plugs: comment or repost once the post reaches N likes or M minutes after it went out, from this account or another of yours.
queueNoInstead of scheduledAt: the account's next free queue slot.
titleNoThe title; required on YouTube, DEV, Hashnode, WordPress and Listmonk (the email subject).
altTextNoAlt text for screen readers, by media key: {"<mediaKey>": "what the image shows"}. platforms_list[].altText says whether the platform takes it and its limit (X 1000, Bluesky 2000, Mastodon 1500, Threads and Instagram 1000, LinkedIn and Facebook 4086, Pinterest 500 on the first item, Discord 1024); TikTok, YouTube, Reddit and Telegram refuse it.
commentsNoWhat goes under the post once it is live, in order. Where the platform threads (X, Bluesky, Threads, Mastodon) each item replies to the one before it, a thread; elsewhere (LinkedIn, Instagram, Facebook Page, Reddit) each is a further comment on the post. Not on TikTok, YouTube, Telegram, Discord or Pinterest. platforms_list[].comments gives each platform's chars, items and media; anything outside them is refused before the post is queued. X bills each item like a post. Each item's outcome (status, url, error) reads back on posts_get.
settingsNoPer-platform settings; the schema is platforms_list[].settingsSchema, and a key outside it or a value of the wrong type is refused (422) naming the keys the platform takes. TikTok privacyLevel (required), postMode direct|inbox, a photo post's title and autoAddMusic; Reddit subreddit, flairId (reddit_flairs lists them), or subreddits for one post per subreddit; LinkedIn imagesAsDocument; Discord threadId or threadName; YouTube title, privacyStatus, tags, defaultLanguage, madeForKids; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership; Pinterest dominantColor; Lemmy community, title, url, nsfw; Whop forum, title; DEV, Hashnode, WordPress, Tumblr title, tags, canonicalUrl and their draft or status; Listmonk title (the subject) and lists (required). A video's cover: coverMediaKey (an image of the account's own) or coverAtMs (a frame, in ms), where the platform's schema offers them.
mediaKeysNoMedia already in the account (assets_upload returns keys), published in this order. Several items are a carousel where the platform has one: Instagram and Threads mix up to 20 images and videos, a Reddit gallery takes up to 20 images. platforms_list[].media says each platform's counts (maxItems caps the mix).
signatureNoAppend a saved signature: its id, name, or "default" (posts_setup). Counted in the platform's length limit.
inspirationNoWhat the post was made from: {kind: format-card|topical-story|reference-post|brand, id, url?, mode?: clone|format|inspiration, memberId?}. For a copy of a reference, kind reference-post with the member id from references_list.
scheduledAtNoISO time it goes out. Omit for now.
connectionIdNoThe account to post as (connections_list).
firstCommentNoOne comment under the post, sent the moment it is live: the one-item comments. Give this or comments.
shortenLinksNoSwap each http(s) link for a shapelessai.com/l/ short link that counts clicks (posts_get links[].clicks).
idempotencyKeyNoAny string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key.
repeatEveryDaysNoRepeat: each time an occurrence goes out, the next is queued this many days after its slot. Each meets the plan's limits like a new post; one refused, failed or canceled ends the series.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
errorNo
groupNo
postsNo
statusYes
skippedNo
willRetryNo
handoffNoteNo
scheduledAtNo
publishedLocationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mediaKeys / description
      Previous value: -"Media already in the account (assets_upload returns keys)."New value: +"Media already in the account (assets_upload returns keys), published in this order. Several items are a carousel where the platform has one: Instagram and Threads mix up to 20 images and videos, a Reddit gallery takes up to 20 images. platforms_list[].media says each platform's counts (maxItems caps the mix)."
  2. Changed3 schema fields changed
    • addedOutput schema / properties / posts / items / properties / scheduledAt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / posts / items / properties / willRetry
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / willRetry
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed14 schema fields changed
    • addedInput schema / properties / comments
      Added value: +{
      +  "description": "What goes under the post once it is live, in order. Where the platform threads (X, Bluesky, Threads, Mastodon) each item replies to the one before it, a thread; elsewhere (LinkedIn, Instagram, Facebook Page, Reddit) each is a further comment on the post. Not on TikTok, YouTube, Telegram, Discord or Pinterest. platforms_list[].comments gives each platform's chars, items and media; anything outside them is refused before the post is queued. X bills each item like a post. Each item's outcome (status, url, error) reads back on posts_get.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "delayMinutes": {
      +        "description": "Minutes after the item before it (the post itself, for the first). Default 0.",
      +        "maximum": 10080,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "mediaKeys": {
      +        "description": "Media riding with it, where the platform takes media under a post (platforms_list[].comments.media).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "description": "The comment.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • changedInput schema / properties / firstComment / description
      Previous value: -"Posted as the post's own first reply the moment it is live. LinkedIn (1250), X (280), Bluesky (300), Instagram (2200)."New value: +"One comment under the post, sent the moment it is live: the one-item comments. Give this or comments."
    • addedInput schema / properties / group
      Added value: +{
      +  "description": "Instead of connectionId: a group's id or name. One post per connected account in it, from the group's defaults; text may be omitted when the defaults carry it. Nothing is written unless every account's platform accepts it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / repeatEveryDays
      Added value: +{
      +  "description": "Repeat: each time an occurrence goes out, the next is queued this many days after its slot. Each meets the plan's limits like a new post; one refused, failed or canceled ends the series.",
      +  "maximum": 365,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / settings / description
      Previous value: -"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage, madeForKids; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership; Pinterest dominantColor). A video's cover: coverMediaKey (an image of the account's own) or coverAtMs (a frame, in ms), where the platform's schema offers them."New value: +"Per-platform settings; the schema is platforms_list[].settingsSchema, and a key outside it or a value of the wrong type is refused (422) naming the keys the platform takes. TikTok privacyLevel (required), postMode direct|inbox, a photo post's title and autoAddMusic; Reddit subreddit, flairId (reddit_flairs lists them), or subreddits for one post per subreddit; LinkedIn imagesAsDocument; Discord threadId or threadName; YouTube title, privacyStatus, tags, defaultLanguage, madeForKids; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership; Pinterest dominantColor; Lemmy community, title, url, nsfw; Whop forum, title; DEV, Hashnode, WordPress, Tumblr title, tags, canonicalUrl and their draft or status; Listmonk title (the subject) and lists (required). A video's cover: coverMediaKey (an image of the account's own) or coverAtMs (a frame, in ms), where the platform's schema offers them."
    • addedInput schema / properties / shortenLinks
      Added value: +{
      +  "description": "Swap each http(s) link for a shapelessai.com/l/ short link that counts clicks (posts_get links[].clicks).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Append a saved signature: its id, name, or \"default\" (posts_setup). Counted in the platform's length limit.",
      +  "type": "string"
      +}
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "Tag names or ids (posts_setup); a new name becomes a tag.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"The post text."New value: +"The post text. Markdown on DEV, Hashnode, WordPress, Tumblr and Listmonk, where it is an article or a newsletter."
    • changedInput schema / properties / title / description
      Previous value: -"The title; YouTube requires one."New value: +"The title; required on YouTube, DEV, Hashnode, WordPress and Listmonk (the email subject)."
    • changedInput schema / required
      Previous value: -[
      -  "connectionId",
      -  "text"
      -]New value: +[]
    • addedOutput schema / properties / group
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / posts
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "error": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "handoffNote": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "publishedLocation": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / skipped
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / altText
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Alt text for screen readers, by media key: {\"<mediaKey>\": \"what the image shows\"}. platforms_list[].altText says whether the platform takes it and its limit (X 1000, Bluesky 2000, Mastodon 1500, Threads and Instagram 1000, LinkedIn and Facebook 4086, Pinterest 500 on the first item, Discord 1024); TikTok, YouTube, Reddit and Telegram refuse it.",
      +  "type": "object"
      +}
    • addedInput schema / properties / plugs
      Added value: +{
      +  "description": "Up to 5 plugs: comment or repost once the post reaches N likes or M minutes after it went out, from this account or another of yours.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One rule that acts once the post is live: when it reaches `likes` likes, or `afterMinutes` after it went out, `comment` under it (text) or `repost` it. connectionId: another connected account of yours acts instead (a repost or comment from a second account); the post's own account by default. Fires at most once; likes are watched for 7 days. GET /api/platforms[].plugs says what each platform can do.",
      +    "properties": {
      +      "connectionId": {
      +        "description": "The account that acts (GET /api/connections); default the post's own.",
      +        "type": "string"
      +      },
      +      "do": {
      +        "enum": [
      +          "comment",
      +          "repost"
      +        ],
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "The comment; a repost takes none.",
      +        "type": "string"
      +      },
      +      "when": {
      +        "additionalProperties": false,
      +        "description": "Exactly one of likes or afterMinutes.",
      +        "properties": {
      +          "afterMinutes": {
      +            "maximum": 10080,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "likes": {
      +            "maximum": 1000000,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "when",
      +      "do"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • changedInput schema / properties / settings / description
      Previous value: -"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership)."New value: +"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage, madeForKids; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership; Pinterest dominantColor). A video's cover: coverMediaKey (an image of the account's own) or coverAtMs (a frame, in ms), where the platform's schema offers them."
  5. Changed1 schema field changed
    • changedInput schema / properties / settings / description
      Previous value: -"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage)."New value: +"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership)."
  6. Changed1 schema field changed
    • changedInput schema / properties / firstComment / description
      Previous value: -"Posted as the post's own first reply the moment it is live. LinkedIn (1250), X (280), Bluesky (300)."New value: +"Posted as the post's own first reply the moment it is live. LinkedIn (1250), X (280), Bluesky (300), Instagram (2200)."
  7. Changed1 schema field changed
    • changedInput schema / properties / settings / description
      Previous value: -"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus)."New value: +"Per-platform settings; the schema is platforms_list[].settingsSchema (TikTok privacyLevel, Reddit subreddit, YouTube privacyStatus, tags, defaultLanguage)."
  8. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key.",
      +  "type": "string"
      +}
  9. Changed2 schema fields changed
    • addedInput schema / properties / audio
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Instagram Reels only (exactly one video): a platform sound Instagram attaches at publish, by id from instagram_audio_search. Needs the Instagram account connected through Facebook Login; otherwise a 409 carries the connect link.",
      +  "properties": {
      +    "audioId": {
      +      "description": "The sound's id.",
      +      "type": "string"
      +    },
      +    "audioVolume": {
      +      "description": "The sound's level, default 100.",
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "videoVolume": {
      +      "description": "The video's own soundtrack under it, default 100.",
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "audioId"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / inspiration
      Added value: +{
      +  "description": "What the post was made from: {kind: format-card|topical-story|reference-post|brand, id, url?, mode?: clone|format|inspiration, memberId?}. For a copy of a reference, kind reference-post with the member id from references_list.",
      +  "type": "object"
      +}
  10. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "handoffNote": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "publishedLocation": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "scheduledAt": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  11. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial independent context: plan quotas (10/day, 60/month, X once a day without links because X bills per post), the exact 402 error codes and the fact they carry reset times and remedies, the posting.notice warning to relay to the human, and the retry semantics that make a failed-but-queued post non-duplicable. It also names the required publish scope and warns that rate limits count each X thread item like a post.

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 key point is front-loaded with a capitalized label, which is good, but the body is a single dense paragraph of run-on sentences mixing quotas, error codes, retry semantics and parameters. Everything is relevant, yet an agent must parse a wall of text to extract the calling contract; splitting limits and retry behavior into their own short lines would read much better.

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

Completeness4/5

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

For a 19-parameter mutation tool with nested objects and an output schema, the description covers the essentials an agent needs before calling: prerequisites (platforms_list, connections_list), auth scope, quota behavior, and duplicate-prevention on retry. Editing or canceling an already-created post is left to implied siblings rather than stated, which is the main remaining gap.

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 description coverage is 100% across 19 parameters, so the schema carries the baseline detail. The description still adds cross-parameter meaning that the schema alone does not make obvious - that connectionId and group are mutually exclusive, that queue replaces scheduledAt, and that shortenLinks, signature and repeatEveryDays are optional add-ons with side effects (series ends on one refusal or failure).

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 ("PUBLISHES CONTENT: puts a post you wrote on the rail") and immediately scopes the two modes of operation - one connected account via connectionId or every account of a group via group. It also distinguishes the supporting calls it depends on (connections_list, posts_setup) and the scheduling modes (next free queue slot vs now), so an agent can tell it apart from posts_update or posts_publish.

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?

Gives explicit sequencing prerequisites ("Read platforms_list first for the plat-form's limits and settings schema"), states the required scope, and spells out when to use group vs connectionId and queue vs scheduledAt. It also gives a concrete when-not rule: a post returning status scheduled with willRetry true is already queued, "so do not post it again." It stops short of naming sibling tools like posts_update or posts_publish as alternatives for editing an existing post.

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.