Skip to main content
Glama

Update a post

update_post
Destructive

Edit an existing post (typically a draft or a scheduled one): copy, media, target accounts, schedule. Fields you omit keep their current value. Dates: scheduledFor SCHEDULES the post (a draft becomes scheduled and will be published at that time); to only change the date proposed on a draft and keep it a draft, use suggestedFor.

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

Input Schema

NameRequiredDescriptionDefault
postIdYes
altTextNoAccessibility alt text per image, keyed by its URL in mediaUrls: {"https://…/a.jpg":"A dog on a red sofa"}. Applied on Instagram feed, Facebook, Threads, X (max 1000), LinkedIn, Bluesky and Pinterest (max 500); ignored elsewhere. Write it for every image you attach — a post without alt text is unreadable to screen readers, and several networks rank it.
contentNo
mediaUrlsNoPublic https URLs of images/videos to attach. THE ORDER MATTERS: it is the carousel order the reader swipes through, and the first one is the cover — the image that shows in the profile grid. Get them from generate_image, generate_video (via get_media_job), upload_media (for a file on the user's machine), import_media (for a url that is already public) or list_library_media.
accountIdsNoIgnix account ids from list_accounts.
publishNowNo
scheduledForNoISO 8601. Schedules the post for this time (a draft becomes SCHEDULED). Omit to keep the current one.
suggestedForNoISO 8601. Only for a draft: changes the date proposed for review and keeps it a draft (nothing gets scheduled).
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.
networkOptionsNoNetwork-specific options keyed by platform: first comment, collaborators, cover image, privacy, board, flair, TikTok consent… e.g. {"instagram":{"firstComment":"…","collaborators":"user1,user2"},"youtube":{"visibility":"public"},"pinterest":{"boardId":"…"}}. Call get_network_options for the EXACT list each network accepts, with types, accepted values and which ones are required.
perNetworkTextNoDifferent copy per network, keyed by platform, e.g. {"x":"short version","linkedin":"long version"}. Networks not listed use the main content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / scheduledFor / description
      Previous value: -"ISO 8601. Omit to keep the current one."New value: +"ISO 8601. Schedules the post for this time (a draft becomes SCHEDULED). Omit to keep the current one."
    • addedInput schema / properties / suggestedFor
      Added value: +{
      +  "description": "ISO 8601. Only for a draft: changes the date proposed for review and keeps it a draft (nothing gets scheduled).",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and openWorldHint=true, so the bar is lower, and the description does add the important partial-update semantic plus the real-world side effect that `scheduledFor` will cause the post to be published. However it never warns about what an edit can overwrite (media order/cover image, network options), how list fields like `mediaUrls` or `accountIds` behave when passed, or that validation is advisable before a destructive publish-affecting change.

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?

Three sentences, front-loaded with the operation, then the partial-update rule, then the date distinction. No filler; every clause carries information the agent needs, and the scheduling caveat is placed after the base rule it modifies.

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 an 11-parameter destructive mutation with nested objects and no output schema, the description covers the highest-risk behaviors (implicit scheduling, preserved fields). Gaps are modest: it does not mention return values or point to validate_post before a publish-affecting edit, but the rich schema descriptions carry most of the remaining load.

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

Parameters3/5

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

With 73% schema coverage the schema already documents most parameters, including the `scheduledFor` vs `suggestedFor` distinction that the description repeats. The one genuine addition is the blanket rule that omitted fields keep their current value, which is not stated in the schema. List-replacement semantics for `mediaUrls`/`accountIds` and the `publishNow` interaction remain unaddressed in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb+resource ('Edit an existing post') and enumerates the editable surface (copy, media, target accounts, schedule), which clearly distinguishes it from siblings like create_post or attach_media_to_post. It stops short of naming the closest alternatives (schedule_post, unschedule_post), so the differentiation is inferred from the field list rather than stated.

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?

It gives explicit positive guidance: omitting fields preserves current values, and use `scheduledFor` to actually schedule while `suggestedFor` changes only the proposed date on a draft. That is real when-to-use guidance for the most error-prone choice on this tool. It does not say when to prefer a sibling (e.g. unschedule_post to remove a schedule), so it is clear context without explicit alternatives.

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