Skip to main content
Glama

Put a video on a planned post

attach_video_to_post
DestructiveIdempotent

Attach a video to a planned post, replacing its media. Send exactly one of: project_id — a finished Video Studio film (create_motion_project / get_studio_video), prepared first when needed (free; if it is still being put together nothing is attached and the result says pending — try again later); asset_id — the owner's OWN finished video in the brand Library (list_brand_assets); or video_url — an https link to their finished MP4, WebM or MOV (up to 80 MB), stored in the brand Library first unless it already is one of its files. An own video is attached exactly as it is: no Video Studio film is made, so nothing is cut, captioned or scored. To publish a finished clip unchanged, use asset_id or video_url, not create_motion_project. A cover picture the post already has is kept (pass keep_cover: false to clear it); a cover moment chosen in the old clip is cleared. Free.

Input Schema

NameRequiredDescriptionDefault
post_idYesThe post id from get_calendar
asset_idNoA video in the brand Library (list_brand_assets), attached as it is
brand_idYesBrand workspace id from list_brands
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
video_urlNoAn https link to the finished video, attached as it is
keep_coverNoDefault true: keep the post's cover picture. False clears it.
project_idNoA finished Video Studio film's project id. The bare project id or the library id ("studio-video:<uuid>" from list_creations / find_creation) both work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "Optional: the user's goal behind this call, in one short sentence of plain words (e.g. \"add a page so customers can book tables\"). No names, emails or other personal details.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / project_id / description
      Previous value: -"A finished Video Studio film's project id"New value: +"A finished Video Studio film's project id. The bare project id or the library id (\"studio-video:<uuid>\" from list_creations / find_creation) both work."
    • removedInput schema / properties / project_id / format
      Removed value: -"uuid"
    • addedInput schema / properties / project_id / pattern
      Added value: +"^(?:studio-video:)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
  3. Changed5 schema fields changed
    • addedInput schema / properties / asset_id
      Added value: +{
      +  "description": "A video in the brand Library (list_brand_assets), attached as it is",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / keep_cover
      Added value: +{
      +  "description": "Default true: keep the post's cover picture. False clears it.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / project_id / description
      Previous value: -"The film's project id"New value: +"A finished Video Studio film's project id"
    • addedInput schema / properties / video_url
      Added value: +{
      +  "description": "An https link to the finished video, attached as it is",
      +  "format": "uri",
      +  "maxLength": 4000,
      +  "pattern": "^https\\:\\/\\/",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "brand_id",
      -  "post_id",
      -  "project_id"
      -]New value: +[
      +  "brand_id",
      +  "post_id"
      +]
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: media replacement, cover picture retention with keep_cover: false clearing it, that the old clip's cover moment is cleared, the pending outcome for in-progress films, the 80 MB / MP4-WebM-MOV constraint, and that url videos are stored in the Library first. It matches destructiveHint=true rather than contradicting it. Missing only what the response actually returns beyond the pending case.

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?

Front-loads the action and the exactly-one-of rule, then walks through the three sources in order. Dense but well organized; the bare 'Free.' at the end is terse and the parenthetical cross-references make it a bit heavy, yet nothing is filler.

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 a 7-parameter destructive mutation with no output schema and open-world behavior, the description covers inputs, side effects, cover handling and one failure mode. It never describes the success response shape, so an agent still doesn't know what a successful attach returns — a minor but real gap.

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 baseline is 3, but the description contributes real value the schema lacks: the mutual-exclusivity constraint across the three source parameters, the pending/retry semantics of project_id, and that asset_id refers to the owner's own Library video attached as-is. It doesn't explain the user_goal parameter or brand_id/post_id sourcing beyond what the schema already says.

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?

Opens with a specific verb+resource+effect: 'Attach a video to a planned post, replacing its media.' It clearly contrasts itself with create_motion_project for unchanged clips. However, it never names the near-identical sibling attach_library_media_to_post, so an agent comparing the two must still open both schemas to tell them apart.

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 an explicit routing rule — 'Send exactly one of' — followed by the condition for each of project_id, asset_id and video_url, including when to prepare a film first and what to expect while it is pending. It also states a negative rule: publish unchanged clips via asset_id/video_url, 'not create_motion_project'.

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