Skip to main content
Glama

Edit a queued post or draft

chirpie_update_post
Destructive

Edit a post that has not published yet, or finish a draft. Only a post still waiting to publish can be edited; one that is publishing, processing, published, failed or deleted is refused with 409 post_not_editable, and an edit that crosses another edit of the same post's text or time is refused with 409 edit_conflict (read the post again and resend). Leaving schedule_at out keeps the time a queued post already has, so editing a queued post never publishes it and never turns it into an immediate one, and costs nothing, since it spent its quota when it was created. Rescheduling a post that belongs to a thread moves every part of that thread, and the response lists them in rescheduled_post_ids. A draft is different: it is held to far less, so an edit that leaves it too long or with no text at all is saved and answers with a warnings array instead of an error. Promoting a draft is the one thing this call does publish: schedule_at queues it, publish: true sends it now, both run every rule a create runs and spend the quota the draft never spent, and the answer carries the new post plus promoted_from_draft_id. draft: true alongside schedule_at changes only the time the draft remembers.

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

Input Schema

NameRequiredDescriptionDefault
idYesPost ID to edit
textNoReplacement text. The same per-platform character limits apply as when creating a post.
draftNoKeep this a draft, whatever else changes. Only meaningful on a post that is already a draft, where it is the difference between remembering a new time and queueing the post for it.
mediaNoReplacement media, following the same per-platform rules as creating a post. Pass an empty array to remove the media.
publishNoPublish this draft now. Only valid on a draft, and never together with schedule_at. The draft is checked in full and charged as a post, then sent.
timezoneNoThe IANA timezone a schedule_at with no offset is read in, such as 'America/New_York'. Daylight saving is worked out for the date named. Ignored when schedule_at already carries an offset. Leave it out to use the timezone saved on the account.
media_urlsNoReplacement public image or video URLs, for a post that needs no alt text. Pass an empty array to remove the media.
schedule_atNoNew ISO 8601 publish time, in the future. Either an absolute instant carrying a timezone, such as '2027-04-01T14:00:00Z', or a local time with no offset, such as '2027-04-01T09:30:00', which is read in the timezone parameter or the one saved on the account. Omit it to keep the time the post already has. On a draft this promotes it to scheduled, unless draft: true is sent too.
configurationNoNew publishing options, or an empty object to put the post back to a plain feed post. Leaving it out keeps the options the post already carries, and sending a block replaces them outright rather than merging into them. The same rules a create runs apply, so a placement the post's media or text does not suit is refused with 400 configuration_unsupported.
first_commentNoA new first comment, or an empty string to remove the one the post carries. This is also how a first comment is added to a post that never had one, as long as it has not published yet. On a thread it belongs to the thread, so it applies whichever part you addressed.
allow_duplicateNoGo ahead even when the account already has a post with the same text within 12 hours. Applies when this call promotes a draft or changes a queued post's text or time; without it such a call is refused with 409 duplicate_post naming the existing post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / configuration / properties / facebook / properties / link / description
      Previous value: -"A URL to attach to a feed post, shown as a link preview. Feed posts only."New value: +"A URL to attach to a feed post, shown as a link preview. Feed posts only, and not a video post, which takes no link."
    • changedInput schema / properties / configuration / properties / instagram / properties / placement / description
      Previous value: -"Where the post goes: feed (the default) takes up to 10 images, story takes exactly one image or video, reel takes exactly one video and no images."New value: +"Where the post goes: feed (the default) takes up to 10 images and videos (one video on its own is published as a reel), story takes exactly one image or video, reel takes exactly one video and no images."
    • changedInput schema / properties / media / maxItems
      Previous value: -10New value: +20
    • changedInput schema / properties / media_urls / maxItems
      Previous value: -10New value: +20
  2. Changed1 schema field changed
    • changedInput schema / properties / allow_duplicate / description
      Previous value: -"Go ahead even when the account already has a post with the same text within 24 hours. Applies when this call promotes a draft or changes a queued post's text or time; without it such a call is refused with 409 duplicate_post naming the existing post."New value: +"Go ahead even when the account already has a post with the same text within 12 hours. Applies when this call promotes a draft or changes a queued post's text or time; without it such a call is refused with 409 duplicate_post naming the existing post."
  3. Changed1 schema field changed
    • addedInput schema / properties / allow_duplicate
      Added value: +{
      +  "description": "Go ahead even when the account already has a post with the same text within 24 hours. Applies when this call promotes a draft or changes a queued post's text or time; without it such a call is refused with 409 duplicate_post naming the existing post.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / configuration / properties / facebook / description
      Previous value: -"How a Facebook Page (coming soon) publishes this post."New value: +"How a Facebook Page publishes this post."
    • changedInput schema / properties / configuration / properties / instagram / description
      Previous value: -"How an Instagram account (coming soon) publishes this post. A story carries no caption (send empty text), no first comment and no collaborators. A reel takes one video, collaborators, user tags, a cover, share_to_feed and trial_reel."New value: +"How an Instagram account publishes this post. A story carries no caption (send empty text), no first comment and no collaborators. A reel takes one video, collaborators, user tags, a cover, share_to_feed and trial_reel."
  5. Changed2 schema fields changed
    • changedInput schema / properties / configuration / properties / facebook / description
      Previous value: -"How a Facebook Page publishes this post."New value: +"How a Facebook Page (coming soon) publishes this post."
    • changedInput schema / properties / configuration / properties / instagram / description
      Previous value: -"How an Instagram account publishes this post. A story carries no caption (send empty text), no first comment and no collaborators. A reel takes one video, collaborators, user tags, a cover, share_to_feed and trial_reel."New value: +"How an Instagram account (coming soon) publishes this post. A story carries no caption (send empty text), no first comment and no collaborators. A reel takes one video, collaborators, user tags, a cover, share_to_feed and trial_reel."
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only say write/destructive/not idempotent), it discloses the state machine and exact error codes, quota accounting (edits cost nothing; promotion spends the draft's quota), the thread-wide cascade with rescheduled_post_ids, and that configuration blocks replace rather than merge. It also explains the deliberate asymmetry between drafts (warnings) and queued posts (errors), which the annotations cannot express.

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?

Content is front-loaded and ordered sensibly (purpose → editability → scheduling → drafts → promotion), and almost every clause carries information. It is a single dense paragraph with long multi-clause sentences, though, which makes it heavier to scan than it needs to be for an 11-parameter tool.

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?

With no output schema, the description still covers response payloads (rescheduled_post_ids, warnings, promoted_from_draft_id) and the failure modes an agent will actually hit. For a nested, 11-parameter, open-world mutation tool, nothing material is missing.

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 baseline is 3, but the description adds real meaning the schema cannot: draft:true alongside schedule_at only rewrites a draft's remembered time, publish is draft-only and exclusive with schedule_at, omitting schedule_at preserves the existing time and never publishes, and allow_duplicate governs duplicate refusal. Nested configuration/media semantics are still left to the schema.

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 opening sentence names a specific verb and resource ("Edit a post") and immediately scopes it to unpublished posts and drafts, so the boundary against create/delete siblings is obvious. It stops short of naming an alternative tool outright (e.g. chirpie_post for new posts), but the implicit contrast via "both run every rule a create runs" makes the distinction clear.

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?

The description gives unusually explicit when/when-not guidance: editable states vs. the refused set (publishing, processing, published, failed, deleted), plus the edit_conflict retry path. It also routes between the three draft outcomes (schedule_at, publish:true, draft:true). The only gap is that it never points the agent at a sibling tool for cases this call refuses.

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.