Skip to main content
Glama

Combine clips

combine_clips

Edit finished clips into one video (1-60 clips, up to 180 seconds), using the job_ids generate_video, animate_image, edit_video and generate_image returned (an image is held as a still). The user's own footage or audio works too: bring it in with add_media and pass its media_id as the job_id. Beyond joining and trimming it is the whole edit in one call: voiceover (generate_audio speech) with the clips and music lowered under it, music_job_id, sound_effects at exact seconds, captions timed to the spoken words, and on-screen text such as a hook or a call to action. Defaults to cuts and the first clip's aspect; each clip can take a motion (zoom_in, zoom_out, pan_left, pan_right, pan_up, pan_down, punch_in or none), a still defaulting to a slow zoom in. Spends render credits, separate from what the clips cost: at least 1 credit on success, by render compute time, not video length; admission reserves an estimate. Waits for the clip and returns it in the conversation; if it is still rendering when the wait ends, the reply carries a job_id: the job keeps running and check_generation returns its result. Starting the same job again makes and bills a second one.

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": {
      "clips": "<clips>"
    },
    "name": "combine_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOptional on-screen text: up to 20 titles, hooks, labels or calls to action.
clipsYesOrdered list of 1-60 completed clips. The total length after trimming can be at most 180 seconds.
titleNoOptional title for the combined video.
aspectNoOptional output aspect ratio, e.g. 16:9, 9:16, 1:1. Defaults to the first clip's aspect.
captionsNoOptional burned-in captions timed to the spoken words. Masonry transcribes the voiceover or the clips for the timings, which costs a few credits.
voiceoverNoOptional narration: up to 20 generate_audio speech jobs placed on the timeline. The clips' own sound is lowered under it. A narration that ends more than 1.5 seconds after the last clip is refused, with the seconds of footage that are missing.
music_roleNoHow music_job_id plays. background (default): quietly under the clips' own sound, dialogue and voiceover. lead: the music is the soundtrack at full volume and the clips' sound is muted; use it for a song with lyrics, a music video or a dance video.
transitionNoTransition between clips: cut (default; preserves timing and dialogue), crossfade, fade_black, slide_left, slide_up, zoom_in, whip, or flash. Non-cut transitions overlap by up to 0.3 seconds.
music_job_idNoOptional completed audio job_id from generate_audio (music or a song).
sound_effectsNoOptional sound effects: up to 30 generate_audio sfx jobs, each at a second on the timeline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the annotations, it discloses that renders spend credits (minimum 1, priced by compute time rather than length, with an estimate reserved at admission) and that re-submitting the same job creates and bills a second one, which explains idempotentHint=false. It also describes the wait behavior and the fallback job_id return path, so an agent knows what it gets back and what it costs before calling.

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-loaded with scope and inputs, then cost and return behavior, so the most decision-relevant facts come first. It is dense but contains a redundant re-listing of the motion enum and default aspect that the schema already documents.

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 carries the return contract itself: the finished video arrives in the conversation, or a job_id is returned and check_generation retrieves the result. Combined with credit behavior and source rules, nothing an agent needs to call this correctly is missing.

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 defines every field; the description still adds real meaning on top, such as the voiceover lowering the clips' and music's volume, music_role=lead muting clip sound, captions incurring a transcription charge, and the narration-overrun refusal rule. Some of it re-states schema defaults (motion values, aspect default), which caps it below 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?

States a specific verb and resource ('Edit finished clips into one video') plus hard scope limits (1-60 clips, up to 180 seconds). It also enumerates the accepted sources by sibling name (generate_video, animate_image, edit_video, generate_image, add_media media_id), so an agent can tell this apart from edit_video or render_motion_graphics without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete routing guidance: use job_ids from the named generation tools, use add_media plus media_id for the user's own footage, and use check_generation when the render is still running. It never states when not to use this tool (e.g. a single-clip edit belonging to edit_video), which keeps it from a 5.

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