Skip to main content
Glama

Create a submission

create_post

Create ONE submission going to as many channels as you list. Calling this once per channel is the most common way to get this wrong: it produces that many unrelated submissions, each with its own id and its own schedule, and the user sees a duplicate for every account.

There is no shared "text" field. Each channel carries its own blocks, so sending the same words to four channels means writing them four times — and tailoring one to LinkedIn costs nothing extra.

If the platform lists postTypes, decide which kind of thing this is BEFORE writing anything and send it as channels[].postType. Composing against the platform’s default and adding the type afterwards is how a submission gets refused for four reasons at once — the caption, the second attachment, the thread and the option all belong to a different kind of post.

blocks is a chain: one entry is an ordinary post, more than one is a thread, and only on platforms whose maxBlocks allows it AND channels whose continuationStatus is available. Check list_platforms and list_channels first — for those, for the character count, and for whether the platform demands media at all.

Describe every image you attach. mediaAltText on a block maps a media id to what the picture shows, for a reader who cannot see it, and it is accepted whatever the channel — list_platforms says which platforms actually publish it. Say what is in the frame, not that it is a picture. Skip it only for a file the library already describes (altText on list_media), which is the description that publishes when you send none.

mediaUserTags tags PEOPLE on an attachment, and is the one field beside it that is refused rather than ignored on the wrong channel: a handle is an account on one platform and the same characters are somebody else on the next. Send it only where list_platforms gives that channel a userTags rule, and read the rule before writing one — it says how many one attachment takes, which kinds of file take any, and whether each tag needs x/y (fractions of the picture from its left and top edges, both or neither). Never invent a handle or a position: tag someone only when the user named them, and place them only where the user said, because a handle that resolves to nobody publishes as a post that tags nobody and says so nowhere.

intent is draft (store it, publish nothing), schedule (needs scheduledAt, ISO 8601, in the future) or now. now is asynchronous: this returns publishing, and get_post is where you learn whether it went out. Do not report a post as published on the strength of this result.

tagIds files the submission under the workspace’s own labels. Call list_tags for the ids and use only what is there — an id that does not exist is refused, and this server cannot create a tag. A tag is not a hashtag and never reaches a platform; a hashtag is characters in a block’s content.

Validation is all-or-nothing: if anything is refused, nothing was created, and the error names the exact field. Pass an idempotencyKey and reuse it verbatim if you retry — without one, a retry after a timeout schedules the post a second time.

Read the channels in the result before reporting success. Scheduling is per channel, so a submission can come back with most channels fine and one reading failed with a reason — that is a result, not an error, and calling this again would duplicate the channels that worked. Send the submission back through update_post instead.

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

Input Schema

NameRequiredDescriptionDefault
postYes
idempotencyKeyNoA key of your choosing that makes this call safe to retry: retrying with the SAME key replays the first outcome instead of doing the work twice. Reuse it verbatim on a retry, and never reuse it for a different request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / post / properties / channels / description
      Previous value: -"Where it goes. At least one, for every intent — including drafts."New value: +"Where it goes. At least one, for every intent, including drafts."
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / description
      Previous value: -"One block of the chain. Text, attachments, or both — a block with neither is refused as `content_empty`."New value: +"One block of the chain. Text, attachments, or both. A block with neither is refused as `content_empty`."
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaAltText / description
      Previous value: -"What each attachment shows, for a reader who cannot see it — keyed by the media id from `mediaIds` it describes. Overrides the description stored on the library item, so the same photo can read differently here. Omit a key to publish with whatever the library says; a key naming a file this block does not attach is `alt_text_unattached`. Accepted on every platform — `limits.supportsAltText` on GET /platforms says which of them will actually send it."New value: +"What each attachment shows, for a reader who cannot see it, keyed by the media id from `mediaIds` it describes. Overrides the description stored on the library item, so the same photo can read differently here. Omit a key to publish with whatever the library says; a key naming a file this block does not attach is `alt_text_unattached`. Accepted on every platform; `limits.supportsAltText` on GET /platforms says which of them will actually send it."
    • addedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaAltText / example / clx3k2p9q0003abcd1234efgh
      Added value: +"A hand-drawn logo on a pale background"
    • removedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaAltText / example / med_2f8a
      Removed value: -"A hand-drawn logo on a pale background"
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaIds / description
      Previous value: -"Media ids from `POST /public/v1/media`, in publication order. Ownership is checked server-side — an id belonging to another workspace is refused, not silently ignored."New value: +"Media ids from `POST /public/v1/media`, in publication order. Ownership is checked server-side: an id belonging to another workspace is refused, not silently ignored."
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaUserTags / additionalProperties / items / description
      Previous value: -"One person tagged on an attachment, and where on it. Whether the coordinates are wanted is `limits.userTags.positioned` on GET /platforms — send both or neither."New value: +"One person tagged on an attachment, and where on it. Whether the coordinates are wanted is `limits.userTags.positioned` on GET /platforms. Send both or neither."
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaUserTags / additionalProperties / items / properties / x / description
      Previous value: -"Distance from the LEFT edge as a fraction of the width — 0.5 is the middle, whatever the picture was uploaded at. Not pixels: a fraction is what survives the platform re-encoding the file."New value: +"Distance from the LEFT edge as a fraction of the width: 0.5 is the middle, whatever the picture was uploaded at. Not pixels: a fraction is what survives the platform re-encoding the file."
    • changedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaUserTags / description
      Previous value: -"Who each attachment tags, keyed by the media id from `mediaIds` they are tagged on. READ THE OPPOSITE WAY FROM `mediaAltText` above: a description is accepted on every platform because it belongs to the file, while a handle is an account on one platform and the same characters name somebody else on the next — so this is refused as `user_tags_not_supported` on a channel whose `limits.userTags` is null, rather than accepted and dropped. That declaration also says how many one attachment may carry, which kinds of file take them, and whether a tag needs a point at all."New value: +"Who each attachment tags, keyed by the media id from `mediaIds` they are tagged on. READ THE OPPOSITE WAY FROM `mediaAltText` above: a description is accepted on every platform because it belongs to the file, while a handle is an account on one platform and the same characters name somebody else on the next, so this is refused as `user_tags_not_supported` on a channel whose `limits.userTags` is null, rather than accepted and dropped. That declaration also says how many one attachment may carry, which kinds of file take them, and whether a tag needs a point at all."
    • addedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaUserTags / example / clx3k2p9q0003abcd1234efgh
      Added value: +[
      +  {
      +    "username": "ada",
      +    "x": 0.25,
      +    "y": 0.75
      +  }
      +]
    • removedInput schema / properties / post / properties / channels / items / properties / blocks / items / properties / mediaUserTags / example / med_2f8a
      Removed value: -[
      -  {
      -    "username": "ada",
      -    "x": 0.25,
      -    "y": 0.75
      -  }
      -]
    • changedInput schema / properties / post / properties / channels / items / properties / options / description
      Previous value: -"Values for the fields that belong to this channel's platform alone — Pinterest's `link` and `board_section_id`, TikTok's `privacy_level`, X's poll answers. Keyed by the `key` of each entry in that platform's `limits.options` on `GET /public/v1/platforms`, which is also where the caps and accepted values are. A key the platform doesn't declare is `option_not_supported`, not a field we quietly drop. Send a string, unless that entry's `type` is `list` — those take an array of strings, and sending the wrong one of the two shapes is `option_invalid`. The bounds here are the request's outer limits rather than any platform's: the real `minItems`, `maxItems` and per-entry `maxCharacters` are on the declaration."New value: +"Values for the fields that belong to this channel's platform alone: Pinterest's `link` and `board_section_id`, TikTok's `privacy_level`, X's poll answers. Keyed by the `key` of each entry in that platform's `limits.options` on `GET /public/v1/platforms`, which is also where the caps and accepted values are. A key the platform doesn't declare is `option_not_supported`, not a field we quietly drop. Send a string, unless that entry's `type` is `list`: those take an array of strings, and sending the wrong one of the two shapes is `option_invalid`. The bounds here are the request's outer limits rather than any platform's: the real `minItems`, `maxItems` and per-entry `maxCharacters` are on the declaration."
    • changedInput schema / properties / post / properties / channels / items / properties / postType / description
      Previous value: -"Which KIND of thing to publish here, on platforms that publish more than one — an Instagram Story rather than a post on the grid. One of the `key`s in that platform’s `postTypes` on `GET /public/v1/platforms`; omit it for the default, which is what that platform’s top-level `limits` describes. A key it does not declare is `post_type_invalid`, and sending one at all where `postTypes` is empty is `post_type_not_supported`. Read the entry’s own `limits` before composing: a Story takes one attachment against ten, publishes no caption at all, holds a video for a minute rather than fifteen, and declares none of the options a post there has."New value: +"Which KIND of thing to publish here, on platforms that publish more than one: an Instagram Story rather than a post on the grid. One of the `key`s in that platform’s `postTypes` on `GET /public/v1/platforms`; omit it for the default, which is what that platform’s top-level `limits` describes. A key it does not declare is `post_type_invalid`, and sending one at all where `postTypes` is empty is `post_type_not_supported`. Read the entry’s own `limits` before composing: a Story takes one attachment against ten, publishes no caption at all, holds a video for a minute rather than fifteen, and declares none of the options a post there has."
    • changedInput schema / properties / post / properties / channels / items / properties / title / description
      Previous value: -"The post’s title, for channels whose platform has one — check `limits.title` on `GET /public/v1/platforms`, which also carries the real cap (this `maxLength` is only the request’s outer bound). Required to publish where that field says `required`; drafts may go without. Sending it to a platform that has no title field is `title_not_supported`."New value: +"The post’s title, for channels whose platform has one: check `limits.title` on `GET /public/v1/platforms`, which also carries the real cap (this `maxLength` is only the request’s outer bound). Required to publish where that field says `required`; drafts may go without. Sending it to a platform that has no title field is `title_not_supported`."
    • changedInput schema / properties / post / properties / intent / description
      Previous value: -"What to do with it.\n`draft` — store it, publish nothing. It still occupies its slot.\n`schedule` — store it and start a durable timer for `scheduledAt`.\n`now` — store it and queue it for immediate publication.\n\n`now` is ASYNCHRONOUS: the response comes back with the submission `publishing`, not published. Publishing takes as long as the platforms take, and a request that blocked on it would time out on exactly the submissions that matter most."New value: +"What to do with it.\n`draft`: store it, publish nothing. It still occupies its slot.\n`schedule`: store it and start a durable timer for `scheduledAt`.\n`now`: store it and queue it for immediate publication.\n\n`now` is ASYNCHRONOUS: the response comes back with the submission `publishing`, not published. Publishing takes as long as the platforms take, and a request that blocked on it would time out on exactly the submissions that matter most."
    • changedInput schema / properties / post / properties / tagIds / description
      Previous value: -"The workspace’s own labels for this submission — ids from `GET /public/v1/tags`. Ids rather than names, because the name is the field a workspace edits. An id this workspace does not own is `tag_not_found`, not a value we drop. On `PUT` this is a replacement like the rest of the body, so omitting it removes every tag."New value: +"The workspace’s own labels for this submission: ids from `GET /public/v1/tags`. Ids rather than names, because the name is the field a workspace edits. An id this workspace does not own is `tag_not_found`, not a value we drop. On `PUT` this is a replacement like the rest of the body, so omitting it removes every tag."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations, which only say it is a non-read-only, non-destructive, non-idempotent write. It discloses that `now` is asynchronous and returns `publishing`, that validation is all-or-nothing with field-named errors, that scheduling is per channel so partial failures are results not errors, and that retries without idempotencyKey duplicate work. It does not contradict idempotentHint=false; it explains exactly why that hint is false and how to compensate.

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?

Roughly six short paragraphs, each owning one pitfall, with the most consequential rule (one call, many channels) front-loaded. It is long, and a few passages re-explain schema-documented fields such as option and block shape, but almost every sentence earns its place as a distinct failure mode.

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 deeply nested two-parameter tool with 50% schema coverage and no output schema, the description covers the missing pieces an agent needs: what the result looks like (`publishing`, per-channel status), how to interpret partial failures, and how to recover. Nothing material about correct invocation is absent.

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 50% but the per-field schema text is already extensive, so the description's value is in cross-field rules: no shared text field, `blocks` cardinality meaning thread vs. single post, `mediaUserTags` being refused rather than ignored on unsupported channels, and `intent=schedule` requiring a future ISO 8601 `scheduledAt`. Some of this restates schema prose, which keeps it below a 5.

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 statement: 'Create ONE submission going to as many channels as you list.' It immediately differentiates itself from the per-channel-per-call alternative and later names update_post as the place to make corrections, so an agent can tell it apart from siblings without opening a 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?

Gives explicit preconditions (check list_platforms and list_channels first, decide postType before composing), explicit anti-patterns (calling once per channel, retrying after partial failure instead of using update_post), and explicit exclusions (tagIds are not hashtags). Nothing about when to choose this over an alternative 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.

Resources