Skip to main content
Glama

Replace a submission

update_post
DestructiveIdempotent

Replace a submission wholesale. This is not a patch: send the WHOLE submission every time, exactly as create_post takes it.

The server reconciles the difference — a channel you leave out is removed and its schedule cancelled, a new one is created and scheduled. So dropping a channel from the body is how you remove it, and forgetting one is how you delete it by accident. Read the submission with get_post first and send it back changed.

tagIds is replaced the same way: omit it and the submission comes out with no tags. Send back the ids get_post gave you unless the user asked to change them.

Only channels the edit ADDS count against the plan’s allowance; re-saving the ones already there is free, so fixing a typo never costs anything.

This is also how you retry a submission whose channels did not all schedule: sending it again reschedules the failed ones and leaves the others where they are.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe submission id.
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?

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds non-obvious behavior the annotations cannot convey: omitting a channel deletes it and cancels its schedule, omitting `tagIds` strips all tags, and only newly added channels count against the plan's allowance. The retry-reschedules-failed-channels behavior is also disclosed. It does not mention the `idempotencyKey` parameter or the asynchronous nature of `intent: now` (left to the schema), which keeps it just short of a 5.

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

Conciseness5/5

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

Five short paragraphs, front-loaded with the single most dangerous fact (whole-body replacement), each subsequent paragraph covering one distinct consequence: reconciliation, tag replacement, billing, retry. No filler and no repetition of schema content.

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 destructive, deeply nested replacement call with no output schema, the description covers the failure modes an agent most needs to avoid. It leaves the async `now` intent and the platform-capability lookups to the schema, which documents them thoroughly, so the split is reasonable.

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 67% and the nested schema is already unusually verbose, so the baseline is near 3; the description earns above that by explaining the replacement semantics of `channels` and `tagIds` in operational terms (omit a channel to remove it, send back the ids `get_post` gave you). It adds meaning rather than repeating field types, though it says nothing about `scheduledAt` or `idempotencyKey` beyond what the schema states.

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 description opens with a specific verb and resource ("Replace a submission wholesale") and immediately distinguishes the operation from a patch and from `create_post` ("exactly as `create_post` takes it"). An agent knows precisely which of the sibling tools this is and what shape of payload it demands without opening the 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?

It gives explicit workflow instructions: read with `get_post` first and send it back changed, and use this same call to retry a submission whose channels did not all schedule. It also states the exclusion ("This is not a patch") and the consequence of getting it wrong, which is stronger than most when-to-use guidance.

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