Skip to main content
Glama

Post a finished video to Instagram

publish_video
Destructive

Use this when the owner asks to post a video made here to Instagram or YouTube right now, or to share it to their Instagram Story. Post a rendered video to the client's connected Instagram as a Reel. ONLY when they have asked for it — show them the video first and let them say yes. This goes out immediately and publicly, with no undo — to post it later instead, use schedule_video. Its answer carries credits.say (what making the video cost and what is left; posting is free): tell the person. platform "youtube" posts it to the connected YouTube channel as a Short instead (one video, not a carousel; the first line of the caption becomes the title) — call once per platform to post to both. A reel goes out with the cover designed for it (automatic) unless they choose another: their own image (cover_file, or cover_upload_id from its own 1-file upload) or a moment (cover_frame_seconds). A carousel has no cover (its first slide shows), and a cover cannot be changed once posted.

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": {
      "video_id": "<video_id>"
    },
    "name": "publish_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoYouTube only: the title. Default: the first line of the caption.
trialNoPost it to Instagram as a TRIAL REEL: shown to people who do not follow the account first; it reaches their followers only when the client opens it in the Instagram app and taps "Share with everyone". One video only — never a photo or a carousel. Use it ONLY when the client asks for a trial reel.
clientNoClient website slug (or id). Required for platform-scoped keys.
captionNoThe post caption. Up to 2200 characters.
platformNoDefault instagram.
video_idYesThe video id, from list_recordings or start_recording_upload.
placementNoWhere on Instagram. Default "feed": a post on the profile. "story": an Instagram Story for 24 hours instead — no caption, no cover and no trial (they are not sent), one Story per file or per carousel slide, a video 3 to 60 seconds. Use "story" ONLY when the client asks for a Story.
auto_shareNoOnly with trial: true. Instagram shares the trial reel with the account's followers by itself if it does well; Instagram decides what counts as doing well, so it may not happen. It is set when the reel goes out and cannot be added afterwards, and nothing here can share a reel that is already posted: for that the client taps "Share with everyone" on it in the Instagram app. Use it ONLY when the client asks for it.
cover_fileNoA reel only: the cover image from this chat (one JPEG or PNG, up to 8MB). Use this OR cover_upload_id OR cover_frame_seconds.
post_againNoONLY when the client says they want a second copy of something that already went out. Without it, the same video within the hour reports the first post instead of posting.
cover_upload_idNoA reel only: the owner's own cover image — the upload_id of a separate start_file_upload with count 1 (one JPEG or PNG, up to 8MB; 1080x1920 is best, and words kept to the middle). Use this OR cover_file OR cover_frame_seconds.
cover_frame_secondsNoA reel only: a moment of the video, in seconds from the start (decimals allowed), to be its cover. Use this OR cover_upload_id OR cover_file.
resume_container_idNoONLY from a previous still_processing result. Finishes the upload already in flight on Instagram instead of starting a second one. Omit it on a first attempt; passing a stale id from an older video posts the wrong thing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / placement
      Added value: +{
      +  "description": "Where on Instagram. Default \"feed\": a post on the profile. \"story\": an Instagram Story for 24 hours instead — no caption, no cover and no trial (they are not sent), one Story per file or per carousel slide, a video 3 to 60 seconds. Use \"story\" ONLY when the client asks for a Story.",
      +  "enum": [
      +    "feed",
      +    "story"
      +  ],
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / cover_file
      Added value: +{
      +  "description": "A reel only: the cover image from this chat (one JPEG or PNG, up to 8MB). Use this OR cover_upload_id OR cover_frame_seconds.",
      +  "items": {
      +    "properties": {
      +      "download_url": {
      +        "description": "Temporary https download link for the file.",
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "description": "The file's id in the chat app.",
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 1,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / cover_frame_seconds
      Added value: +{
      +  "description": "A reel only: a moment of the video, in seconds from the start (decimals allowed), to be its cover. Use this OR cover_upload_id OR cover_file.",
      +  "type": "number"
      +}
    • addedInput schema / properties / cover_upload_id
      Added value: +{
      +  "description": "A reel only: the owner's own cover image — the upload_id of a separate start_file_upload with count 1 (one JPEG or PNG, up to 8MB; 1080x1920 is best, and words kept to the middle). Use this OR cover_file OR cover_frame_seconds.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and openWorldHint=true, and the description adds exactly the context they cannot: the post "goes out immediately and publicly, with no undo" and a cover "cannot be changed once posted." It also discloses that the result carries credits.say (posting is free, making the video costs), which matters because there is no output schema, and warns that posting the same video within the hour returns the first post unless post_again is set.

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 most decision-relevant content — the trigger condition, the consent requirement, and the no-undo warning — is front-loaded before any parameter discussion. It is dense and parenthetical-heavy, and a few clauses restate what the schema already documents (e.g. the title default), but no sentence is purely filler.

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?

For a 13-parameter, irreversible publishing tool with no output schema, the description covers every consequential mode (platform, story, trial, cover choice, re-post, resume) and explicitly describes the response's credits.say field. An agent has enough to decide, confirm with the user, and call correctly.

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 description coverage is 100%, so the baseline is 3, but the description adds genuine meaning on top: platform=youtube becomes a YouTube Short where the caption's first line becomes the title, a carousel has no cover (first slide shows), and the cover options are mutually exclusive. Much of the param detail (trial, auto_share, resume_container_id) is restated from schema descriptions rather than extended, which keeps it below a 5.

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?

Opens with a specific verb and resource ("Post a rendered video to the client's connected Instagram as a Reel") and immediately distinguishes itself from the sibling it is not: "to post it later instead, use schedule_video." It also names the platform variants (YouTube Short, Instagram Story) so an agent can tell exactly what this tool does 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?

Gives explicit when-to-use conditions ("when the owner asks to post... right now"), an explicit prerequisite ("ONLY when they have asked for it — show them the video first and let them say yes"), and names the alternative for the deferred case (schedule_video). It repeats the "ONLY when asked" rule for the risky variants — trial, story, auto_share, post_again — so there is no ambiguity about when each mode is appropriate.

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