Skip to main content
Glama

Assemble clips into one video

flow_assemble
Idempotent

Join downloaded scene clips into one MP4 using local ffmpeg, keeping each clip’s own sound and layering music, voiceover, trims, cutaways, and end cards without credits.

Instructions

Join a project's downloaded scene clips in order into one MP4 (local ffmpeg, no credits). Keeps each clip's own sound and can lay a music track and a voiceover on top.

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": {
      "project": "<project>"
    },
    "name": "flow_assemble"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoFilm size as WIDTHxHEIGHT, e.g. '1080x1920' for a phone-ready vertical master. Default: the biggest clip, after any crop.
clipsNoAbsolute clip paths in play order. Default: every scene-NN.mp4 in the project folder (first variant of each).
musicNoAbsolute path to a music file; looped and trimmed to the film length.
trimsNoOne entry per clip, in play order: the seconds of that clip to keep, e.g. [{from: 0.6}, null, {to: 8.4}] cuts a dead start off clip 1 and an awkward pause off the end of clip 3 (null keeps a clip whole). The same clip may be listed twice with two windows to cut a repeated or fluffed line out of its middle. Use flow_transcribe's word times to find the cut points, and never cut inside a stray sound at the start of a take.
insertsNoB-roll cutaways: show another clip's picture over part of a clip while that clip's own sound keeps playing - the person keeps talking over the product shot and the picture cuts back to them mid-take, in sync and at the same loudness. Better than voice_lines when the line comes from one of the film's own clips.
projectYesSame project name used in flow_generate.
end_cardNoA closing card: big centred words over the film's own last frame, blurred and darkened. Free, made on this computer.
end_holdNoHold the last frame this many seconds at the end, fading to black over its last `fade` seconds.
loudnessNoLevel the finished film's sound to this loudness in LUFS. Flow's takes come out near -24, which is quiet on a phone; social video sits around -14.
voiceoverNoAbsolute path to a voiceover audio file, starts at 0:00.
duck_musicNoPull the music down automatically while the voiceover speaks, and let it back up in the gaps.
clip_volumeNoVolume of the clips' own sound, 0-1. Lower it (around 0.2-0.3) so a narration sits clearly on top; 1 keeps it as recorded.
music_curveNoMusic level over the film on top of music_volume: {at: seconds, volume}, straight lines between points. Fade in, drop for a quiet moment, rise for the ending.
output_nameNofinal
voice_linesNoA timed voiceover built from separate lines, each placed at its own moment in the film - for example lines cut from several Flow takes in your avatar's voice, each landing on the title it describes. Replaces `voiceover`.
music_volumeNo
hold_last_frameNoFreeze the final frame so a longer voiceover is not cut off.
remove_watermarkNoPaint out the sparkle mark Google's video models put in the bottom-right corner, found automatically and filled from the pixels around it (no crop). The invisible SynthID mark stays, and platforms still expect an AI-content label.
watermark_marginNoWith remove_watermark: grow the mask by this many pixels and make it a diamond. Use about 10 after a long Extend chain, where the mark has been redrawn thicker. Look at the corner afterwards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the mutation/idempotent/non-destructive profile, so the description's job is context, and it delivers: local ffmpeg, no credit cost, output is MP4, clip audio is preserved and music/voiceover are layered on top. It stops short of saying where the file lands or how long a render takes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the verb and the output artifact, with the free/local qualifier and the audio layering following immediately. Nothing is wasted, and it correctly offloads parameter detail to the rich schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, deeply nested assembly tool with no output schema, the description covers what is produced (one MP4) but not where it is written, what the defaults produce (all scene-NN clips at the largest size), or the ordering relative to flow_download/flow_transcribe. It is adequate at the purpose level but thin at the operational level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 89%, so the schema already documents the 19 parameters in depth. The description contributes only the high-level notion of stacking music and voiceover over preserved clip sound; it adds no syntax, defaults, or ordering rules beyond that, so baseline 3 is appropriate.

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?

States a specific verb and resource: 'Join a project's downloaded scene clips in order into one MP4', plus the production detail of local ffmpeg and no credits. An agent immediately knows this is the final-assembly step rather than a generation step like flow_generate, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'downloaded scene clips' signals the clips must already exist locally, and 'no credits' hints at preferring this over cloud rendering. There is no explicit when-to-use, no when-not, and no named alternative (e.g., for voice lines, the schema rather than the description points to flow_transcribe).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.