Skip to main content
Glama

Prepare a social post

prepare_post

Stages a post of one of this account's finished videos to one of its connected TikTok, YouTube or Instagram accounts and returns the post id publish_post takes. NOTHING IS PUBLISHED BY THIS CALL. WHEN: after list_social_accounts gave you an account id and you have a finished video's id (list_videos / get_video, status succeeded). AN AI VIDEO STORY EPISODE MUST BE RENDERED FIRST: it reports succeeded at story.stage: "ready_to_render", where its only file is the raw stitched preview, and an unrendered episode is REFUSED (409 episode_not_rendered): call render_story_video, wait for story.stage: "rendered", then prepare. IF THE USER IS LOOKING AT A RENDERED CARD, DO NOT ASK THEM TO CONFIRM IN CHAT: call review_post with the id this returns and STOP. The card shows the actual video, the destination account and the caption, visibility and disclosure controls, and the person confirms there. WHY TWO STEPS: on TikTok this call asks the platform what the user's own account allows and returns it as account_limits (the privacy levels it may use; whether comments, duet or stitch are off): show the user those options, get their choice, and only then call publish_post. A prepared post expires after 30 minutes because those limits can change. On YouTube and Instagram nothing is asked of the platform (account_limits says source: aicut_api_limits): do not present it as what the channel allows. FIELDS ARE PER PLATFORM (each field says which; another platform's is refused). post_mode: "draft" (TikTok, only if the USER asked for a draft) sends the video to their TikTok inbox instead of posting it: they finish caption, privacy and sound in the TikTok app. is_your_brand and is_branded_content are TikTok's commercial-disclosure declarations (the user's own business; a paid partnership). Both default to false: set one only if the USER told you to, because a disclosure they did not make must not be sent for them. schedule_at stages a post for later (ISO-8601, 10 minutes to a year ahead); publish_post commits it. ASK THE USER FOR A TIME rather than inventing one, and say what scheduling means on their platform (the account's schedule_custody). You can only post a video on this aicut account (by id, never a url: import_video brings an outside clip in), to a social account this same user connected. REFUSALS you act on: 403 insufficient_scope = THE USER'S CONNECTION CANNOT POST (it was approved before aicut added the social:publish permission), so a connection that generates videos fine can still be refused here. It is not an outage and not a bad video_id or account_id; a retry, another account or another video cannot fix it. Tell the user to disconnect aicut at https://www.aicut.pro/account/settings#connections, connect it again and approve "Post your videos to your connected social accounts" (generating stops working until they have reconnected), then STOP.

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": {
      "platform": "<platform>",
      "account_id": "<account_id>",
      "video_id": "<video_id>",
      "caption": "<caption>"
    },
    "name": "prepare_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoYouTube only: up to 30 tags, 500 characters in total.
titleNoYouTube only, required: the title, up to 100 characters.
captionYesThe post text, sent exactly as given: up to 2200 characters (on YouTube the DESCRIPTION, 5000); longer: refused, not trimmed. A TikTok draft stores it but TikTok's inbox takes none.
platformYesThe platform to post to; it must match the `platform` of the account id (the platforms number accounts independently).
video_idYesA FINISHED video's id on this account (an episode: RENDERED), or an `import_video` id.
post_modeNoTikTok only. direct (default): posts it. draft: uploads to the user's TikTok inbox; refuses privacy_level, allow_*, is_* and schedule_at.
account_idYesThe connected account's `id` from `list_social_accounts`.
allow_duetNoTikTok only. Default true.
category_idNoYouTube only: the category id. Default 24 (Entertainment).
schedule_atNoOmit to publish when `publish_post` is called.
allow_stitchNoTikTok only. Default true.
is_your_brandNoTikTok disclosure: the user's own business. Default false; set only if the user said so.
privacy_levelNoTikTok: one of `account_limits.privacy_level_options` (PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY): ask the user. YouTube: public, unlisted or private. Required on both, except a TikTok draft.
allow_commentsNoTikTok only. Default true.
is_branded_contentNoTikTok disclosure: a paid partnership. Default false; set only if the user said so.
thumbnail_upload_idNoYouTube only: thumbnail, a JPEG/PNG `id` from `confirm_upload`/`list_uploads`. Needs a verified channel; a refusal never fails a post.
trial_graduation_strategyNoInstagram only: post a trial reel, shown to non-followers first. MANUAL (default): a trial until shared in the Instagram app; SS_PERFORMANCE: shared to followers if it performs well. Set only if the user asked for a trial or test reel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / caption / description
      Previous value: -"The post text, sent exactly as given: up to 2200 characters (on YouTube the DESCRIPTION, 5000); longer: refused, not trimmed."New value: +"The post text, sent exactly as given: up to 2200 characters (on YouTube the DESCRIPTION, 5000); longer: refused, not trimmed. A TikTok draft stores it but TikTok's inbox takes none."
    • addedInput schema / properties / post_mode
      Added value: +{
      +  "description": "TikTok only. direct (default): posts it. draft: uploads to the user's TikTok inbox; refuses privacy_level, allow_*, is_* and schedule_at.",
      +  "enum": [
      +    "direct",
      +    "draft"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / privacy_level / description
      Previous value: -"TikTok: one of `account_limits.privacy_level_options` (PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY): ask the user. YouTube: public, unlisted or private. Required on both."New value: +"TikTok: one of `account_limits.privacy_level_options` (PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY): ask the user. YouTube: public, unlisted or private. Required on both, except a TikTok draft."
  2. Changed4 schema fields changed
    • changedInput schema / properties / caption / description
      Previous value: -"The post text exactly as given: up to 2200 characters; on YouTube the DESCRIPTION, up to 5000."New value: +"The post text, sent exactly as given: up to 2200 characters (on YouTube the DESCRIPTION, 5000); longer: refused, not trimmed."
    • changedInput schema / properties / schedule_at / description
      Previous value: -"ISO-8601. Omit to publish when `publish_post` is called."New value: +"Omit to publish when `publish_post` is called."
    • addedInput schema / properties / thumbnail_upload_id
      Added value: +{
      +  "description": "YouTube only: thumbnail, a JPEG/PNG `id` from `confirm_upload`/`list_uploads`. Needs a verified channel; a refusal never fails a post.",
      +  "type": "string"
      +}
    • changedInput schema / properties / video_id / description
      Previous value: -"The id of a FINISHED (episode: RENDERED) video on this account, or an `import_video` id."New value: +"A FINISHED video's id on this account (an episode: RENDERED), or an `import_video` id."
  3. Changed2 schema fields changed
    • changedInput schema / properties / trial_graduation_strategy / description
      Previous value: -"Instagram only: post a trial reel, shown to non-followers first. SS_PERFORMANCE: shared to followers if it performs well; MANUAL: a trial until shared in the Instagram app. Set only if the user asked for a trial or test reel."New value: +"Instagram only: post a trial reel, shown to non-followers first. MANUAL (default): a trial until shared in the Instagram app; SS_PERFORMANCE: shared to followers if it performs well. Set only if the user asked for a trial or test reel."
    • changedInput schema / properties / trial_graduation_strategy / enum
      Previous value: -[
      -  "SS_PERFORMANCE",
      -  "MANUAL"
      -]New value: +[
      +  "MANUAL",
      +  "SS_PERFORMANCE"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-readOnly, non-idempotent, non-destructive and open-world; the description adds the substantive behavior: a 30-minute expiry, the TikTok `account_limits` platform query and its meaning, per-platform field refusal, the deliberate two-step design, and two concrete refusals (409 `episode_not_rendered`, 403 `insufficient_scope`) with the exact remediation steps for each. No statement conflicts with the annotations.

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?

The critical constraint (nothing is published here) is front-loaded, and the paragraph is organized by WHEN, WHY TWO STEPS, per-platform fields, and refusals. It is long and heavy on ALL-CAPS emphasis with some repetition of guidance already in the schema, which keeps it from a 5, but for a 17-parameter multi-platform staging tool nearly every sentence carries actionable information.

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 states what comes back (the post id `publish_post` takes, plus `account_limits` on TikTok) and covers the expiry, the refusals and their fixes, and the channel/account constraints. For a complex staging tool an agent has everything needed to call it correctly and handle the failure modes.

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 the schema already explains each of the 17 fields and the description's baseline is 3. The description adds cross-field semantics the schema cannot express as well: that fields are per-platform and another platform's is refused, that `is_your_brand`/`is_branded_content` must only be set if the user asked, that `schedule_at` requires asking the user for a time, and that privacy options come from `account_limits` — though several of these are also echoed in the schema descriptions, limiting the marginal gain.

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?

Names a specific verb and resource ("stages a post of one of this account's finished videos" to a connected TikTok/YouTube/Instagram account) and immediately distinguishes itself from the sibling that actually publishes ("NOTHING IS PUBLISHED BY THIS CALL"). An agent knows exactly what this does versus `publish_post` without opening either 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?

Explicit WHEN clause names prerequisites (`list_social_accounts` for the account id, `list_videos`/`get_video` with status succeeded), the render-first rule for story episodes, and the routing rule to `review_post` when the user is looking at a rendered card. It also names the alternative flows (`render_story_video`, `publish_post`, `import_video`) and the exact conditions that select them.

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.