MCPMCP Tools/Posts/update_post

update_post

Writeposts:write

Update an editable post (draft/scheduled/error/active). Only the content and schedule fields you supply are changed — omitted fields keep their stored values (name, postType, platforms, captions, media, scheduledFor, etc.). Editing a post that is a draft keeps it a draft — a caption fix never publishes it. To take a draft live pass draft=false, a scheduledFor, or call publish_post_now. Pass draft=true to save any post as a draft (skips required-field checks); on a post that is already scheduled/active, omitting draft reconciles and publishes. Reconciles platform submissions. UI Series drafts use suggestedFor rather than an applied schedule; read get_distribution_campaign and preview_distribution_time_change first. Generic update_post does not authorize Series scheduling. A requested platform with no active connection never fails this call either (same as create_post) and the response is `{ status: "no_connection", missingPlatforms, scope, post: { id, status } }` instead of the usual `{ id, status }`. PLATFORM RULES (enforced — violations rejected): Post types: `announcement` works on every platform; `event` and `offer` are Google-only (any social platform ⇒ must be announcement). Caption char limits: google 1500, facebook 30000, instagram 2200, x 280 WEIGHTED characters rather than typed ones — Japanese/Chinese/Korean characters and emoji cost 2 each and any link costs a flat 23, so a non-Latin caption fits roughly 140 typed characters; setting linkUrl appends that link to the caption for a further 25 weighted (X thread mode is exempt from the limit entirely), linkedin 2000, pinterest 500, mastodon 500, bluesky 300, youtube 5000. Media (per platform, using each item's `platform`): facebook ≤10 images OR ≤1 video, no mix (carousel = 2–10 images only, per-card headline ≤80 / description ≤200); instagram requires ≥1 media, ≤10 images OR ≤1 video, no image/video mix; x ≤4 images OR ≤1 video, no mix; linkedin ≤5 images OR ≤1 video, no mix; pinterest image-only, exactly 1, required; mastodon ≤4 images OR ≤1 video, no mix; youtube video-only, exactly 1, required. Google event ⇒ eventTitle (≤58 chars) + eventStartAt + eventEndAt (end after start) required. Google offer ⇒ ctaType + ctaUrl required. scheduledFor must be in the future. Drafts (draft=true) skip required-field checks but still enforce all structural checks above.

Parameters
postIdstringrequired
Post id (from list_posts or get_post). Accepts the database ID or public post- ID. IDs must belong to the authenticated agency and permitted client.
namestringoptional
Internal post name/label. Required, non-empty, ≤255 characters.
postType"announcement" | "event" | "offer"optional
Post type. `announcement` is supported by all platforms. `event` and `offer` are GOOGLE-ONLY — if any social platform (facebook, instagram, x, linkedin, pinterest, mastodon, bluesky, youtube) is selected, postType must be `announcement`.
platforms("google" | "facebook" | "instagram" | "x" | "linkedin" | "pinterest" | "mastodon" | "bluesky" | "youtube")[]optional
Target platforms. Valid values: google, facebook, instagram, x, linkedin, pinterest, mastodon, bluesky, youtube. Required unless you name exact accounts with `connectionIds` instead; unknown values are rejected. e.g. ["google","facebook","instagram"].
connectionIdsstring[]optional
Optional exact targets: the connection ids to publish to (from list_connected_accounts: a location-bound one, with a clientLocationId, or a brand-level page). When given, the post goes to exactly these and its platforms are theirs; otherwise each platform in `platforms` resolves to the location's connection.
messageGooglestringoptional
Caption for Google. Required when `google` is selected (unless draft). Max 1500 characters.
messageFacebookstringoptional
Shared social caption — used by facebook, instagram, x, linkedin, pinterest, mastodon, bluesky, youtube. Required when any of those is selected (not for a tiktok-only or youtube-only selection, where the caption is optional; Google uses messageGoogle instead) is selected, unless draft. It is validated against EACH selected platform's character limit: facebook 30000, instagram 2200, x 280 WEIGHTED characters rather than typed ones — Japanese/Chinese/Korean characters and emoji cost 2 each and any link costs a flat 23, so a non-Latin caption fits roughly 140 typed characters; setting linkUrl appends that link to the caption for a further 25 weighted (X thread mode is exempt from the limit entirely), linkedin 2000, pinterest 500, mastodon 500, bluesky 300, youtube 5000. The message must fit the smallest limit among the selected social platforms that don't have their own caption in captionOverrides (a platform with an override is checked against its override and its own limit instead).
ctaType"learn_more" | "sign_up" | "order_online" | "book" | "buy" | "call_now"optional
Call-to-action type. For a Google `offer`, ctaType AND ctaUrl are both required. learn_more/sign_up/order_online/book/buy all require ctaUrl; call_now does not.
ctaUrlstringoptional
Call-to-action URL. Required for a Google offer and for CTA types other than call_now.
mediaUrlsobject[]optional
Media items, one entry per platform attachment: [{ "url", "platform", "type": "image"|"video" }]. The `platform` on each item must be one of the target platforms and controls which per-platform media rules apply. Per-platform limits (violations are rejected): google = no media constraints enforced here; facebook = ≤10 images OR ≤1 video, no mix (carousel: 2–10 image cards, images only); instagram = requires ≥1 item, ≤10 images OR ≤1 video, images and video cannot be mixed; x = ≤4 images OR ≤1 video, no mix; linkedin = ≤5 images OR ≤1 video, no mix; pinterest = image only (no video), exactly 1 image, required; mastodon = ≤4 images OR ≤1 video, no mix; youtube = video only (no images), exactly 1 video, required; up to YouTube's own 256 GB / 12 h limit.
urlstringoptional
Publicly reachable media URL (http/https).
platform"google" | "facebook" | "instagram" | "x" | "linkedin" | "pinterest" | "mastodon" | "bluesky" | "youtube"optional
Which target platform this media attaches to.
type"image" | "video"optional
Media kind.
eventTitlestringoptional
Event/offer title. For a Google event or offer this is required (unless draft) and must be ≤58 characters.
eventStartAtstringoptional
Event/offer start (ISO timestamp). Required for Google event/offer posts (unless draft).
eventEndAtstringoptional
Event/offer end (ISO timestamp). Required for Google event/offer posts (unless draft); must be after the start.
offerTermsstringoptional
Offer terms (offer posts).
offerCouponCodestringoptional
Offer coupon code.
offerRedeemUrlstringoptional
Offer redemption URL.
scheduledForstringoptional
Schedule for this ISO timestamp (must be in the future; omit to publish now).
youtubeTitlestringoptional
YouTube only (ignored otherwise): video title, ≤100 characters, no < or >. Defaults to `name`. The shared social caption (messageFacebook) becomes the video description (≤5000 bytes, no < or >). YouTube is available only on accounts with YouTube enabled; otherwise a YouTube target is rejected.
youtubePrivacyStatus"private" | "unlisted" | "public"optional
YouTube only: visibility. Defaults to private.
youtubeMadeForKidsbooleanoptional
YouTube only: whether the video is made for kids (COPPA). Required to publish to YouTube.
youtubeCategoryIdstringoptional
YouTube only: numeric video category id, e.g. "22" (People & Blogs, the default).
youtubeTagsstring[]optional
YouTube only: tags, ≤500 characters in total (commas count; a tag with a space costs 2 more).
youtubeDefaultLanguagestringoptional
YouTube only: BCP-47 language of the title and description.
youtubeAudioLanguagestringoptional
YouTube only: BCP-47 language spoken in the video.
youtubeLocalizationsstringoptional
YouTube only: JSON object keyed by BCP-47 language, each with title and description. Requires youtubeDefaultLanguage.
youtubeRecordingDatestringoptional
YouTube only: ISO timestamp when the video was recorded.
youtubePublishAtstringoptional
YouTube only: future ISO timestamp for native YouTube scheduling. Requires private visibility; must follow the Synup upload time.
youtubePublicStatsViewablebooleanoptional
YouTube only: show extended video statistics publicly.
youtubeNotifySubscribersbooleanoptional
YouTube only: notify channel subscribers of the upload. Defaults to true.
youtubeEmbeddablebooleanoptional
YouTube only: allow embedding on other sites.
youtubeLicense"youtube" | "creativeCommon"optional
YouTube only: license.
youtubeSyntheticMediabooleanoptional
YouTube only: the video contains realistic altered or synthetic content.
youtubePaidPlacementbooleanoptional
YouTube only: the video contains paid product placement.
youtubeThumbnailUrlstringoptional
YouTube only: custom thumbnail image URL (JPEG/PNG), set after upload. The channel must be phone-verified for YouTube to accept it.
youtubePlaylistIdsstring[]optional
YouTube only: additional playlist ids; all selected memberships are synchronized after upload or edit.
youtubePlaylistIdstringoptional
YouTube only: id of one of the channel's own playlists; the video is added to it after upload.
youtubeCaptionsobject[]optional
YouTube only: caption tracks attached after upload, each { url (an .srt/.vtt file), language (e.g. "en"), name }. Each costs 400 YouTube quota units.
urlstringoptional
Caption file URL
languagestringoptional
Language code, e.g. en
namestringoptional
Track name shown to viewers
linkUrlstringoptional
Unified link for the post; each platform places it per its own rules (CTA button, in-caption link, pin link).
linkCtaKeystringoptional
Which call-to-action label the unified link uses (same keys as ctaType).
utmobjectoptional
UTM parameters appended to the unified link.
sourcestringoptional
mediumstringoptional
campaignstringoptional
termstringoptional
linkOverrideobjectoptional
Per-platform link overrides, keyed by platform.
linkAppendobjectoptional
Append the link to the caption on these platforms.
xbooleanoptional
mastodonbooleanoptional
ctaUrlFacebookstringoptional
Facebook-only call-to-action URL (overrides ctaUrl on Facebook).
xThreadbooleanoptional
X only: split a long caption into a thread instead of rejecting it.
scheduleLocalTimestringoptional
Wall-clock schedule time (e.g. 2026-10-12T09:00) interpreted per scheduleZoneMode. Requires scheduleZoneMode.
scheduleZoneMode"target_local" | "fixed_zone"optional
How scheduleLocalTime is interpreted: in each target's local zone, or one fixed zone.
scheduleTimeZonestringoptional
IANA zone, required when scheduleZoneMode is fixed_zone (e.g. America/New_York).
timeZoneMode"target_local" | "fixed_zone"optional
Alias of scheduleZoneMode kept for the composer.
videoCoverUrlstringoptional
Video cover image URL (platforms that support covers).
videoCaptionsUrlstringoptional
Subtitle file URL (.srt/.vtt) for the video.
videoCaptionsLanguagestringoptional
Language code of the subtitle file, e.g. en.
captionOverridesoptional
Per-platform captions that replace the shared caption (messageFacebook) on that platform only, e.g. { "x": "Short version #sale", "linkedin": "Longer, professional version" }. Supported: facebook, instagram, linkedin, x, bluesky, mastodon, threads, pinterest, tiktok, youtube; other platforms (Google, Reddit, Medium, Substack, Vimeo, Dailymotion) are refused (they publish the shared caption). Each is checked against its own platform's limit. On update, only the platforms you name change; set one to null (or "") to go back to the shared caption, or pass null for the whole field to clear all. Shared messageFacebook stays the default for every platform without an entry.
facebookCaptionstringoptional
Facebook-only caption, used instead of the shared social caption. Prefer captionOverrides.facebook.
facebookCtaTypestringoptional
Facebook-only call-to-action button type.
facebookFirstCommentstringoptional
Facebook: text posted as the first comment.
facebookPublishAs"default" | "reel" | "carousel" | "suppress_link"optional
Facebook format.
facebookCarouselCardsobject[]optional
Facebook carousel cards (when facebookPublishAs is carousel), each { headline, description, link }.
headlinestringoptional
descriptionstringoptional
linkstringoptional
facebookTargetCountrystringoptional
Facebook audience restriction: country code.
facebookTargetGenderstringoptional
Facebook audience restriction: gender.
facebookTargetAgeMinstringoptional
Facebook audience restriction: minimum age.
facebookTargetAgeMaxstringoptional
Facebook audience restriction: maximum age.
facebookTargetRelationshipstringoptional
Facebook audience restriction: relationship status.
instagramFirstCommentstringoptional
Instagram: text posted as the first comment.
instagramAltTextstringoptional
Instagram: alt text for the image.
xReplySettings"everyone" | "following" | "mentioned"optional
X: who can reply.
linkedinVisibility"anyone" | "connections" | "followers"optional
LinkedIn: who can see the post.
linkedinFirstCommentstringoptional
LinkedIn: text posted as the first comment.
pinterestTitlestringoptional
Pinterest: pin title.
pinterestBoardIdstringoptional
Pinterest: board to pin to (see list_pinterest_boards).
pinterestBoardNamestringoptional
Pinterest: board name, for display.
pinterestLinkstringoptional
Pinterest: destination link of the pin.
pinterestAltTextstringoptional
Pinterest: alt text for the pin image.
mastodonVisibility"public" | "unlisted" | "private" | "direct"optional
Mastodon: visibility.
mastodonSpoilerTextstringoptional
Mastodon: content-warning text.
mastodonSensitivebooleanoptional
Mastodon: mark media as sensitive.
blueskyLanguagestringoptional
Bluesky: language code of the post, e.g. en.
blueskyReplyGating"everyone" | "mentioned" | "following" | "nobody"optional
Bluesky: who can reply.
draftbooleanoptional
Save as draft without publishing. Drafts skip publish-gating 'required' checks (required message, required media, required event/offer fields) but STILL enforce structural checks: character limits, media counts, media mixing, valid enums, carousel bounds, and date ordering.
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_post",
    "arguments": {
      "postId": "string"
    }
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.