Skip to main content
Glama

Assemble Film

assemble_film

Queue an assembled first cut for an existing film project by concatenating every rendered shot clip in order, optionally replacing the cut's audio with the project's audioUrl narration track. Costs 2 credits, plus 1 for each distinct clip that needs cropping or padding and was not already fitted to the same canvas by a completed assembly (completed crops are reused, so re-assembling unchanged shots does not charge for them again). Returns a job ID immediately; call check_job for the permanent cut URL. A failed job is refunded automatically. An identical assembly from the last 10 minutes returns that job without charging again.

Narration replaces all shot audio, including dialogue, lip-sync and ambience; set with_narration to false when shots carry dialogue or sound that must be kept, then layer narration or music under that audio with add_audio_to_video (audio_mode=mix) on the assembled cut. Mode "connect" is the default and preserves every clip even when the result exceeds the target duration, returning an overage warning. Mode "cut_end" trims only the end of the fully assembled output to the project's target duration.

The id must be a real value returned by create_film_project or list_film_projects. One job joins at most 50 clips; for direct video inputs not stored in a film project use merge_media. This does not mix per-shot audio, add transitions, add captions, or perform a full sound mix. On completion it saves assembledUrl and sets status to preview_ok. Run only after every intended shot has a completed clipUrl.

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": {
      "id": "<id>"
    },
    "name": "assemble_film"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExisting film project id returned by create_film_project or list_film_projects; never use a placeholder.
modeNoconnect preserves every clip and warns about target overage; cut_end trims the fully assembled output at the target duration.connect
video_fitNoFit clips to the first clip's canvas. crop (default) and auto center-crop mismatches; pad preserves the full frame with black bars; strict (only when the user asks for it) refuses clips with a different aspect ratio. Original shot URLs are preserved; completed crops are reused on later assemblies.crop
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
with_narrationNoReplace the stitched video's audio with the project's audioUrl narration track, if present. This discards every shot's own audio, and the cut ends with the shorter of the video and narration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: exact credit cost (2 + 1 per distinct unfitted clip), crop reuse across assemblies, automatic refund on failure, a 10-minute dedupe window, the 50-clip cap, immediate job ID with check_job for the permanent URL, and the post-run side effects (saves assembledUrl, status becomes preview_ok). It also discloses the destructive scope of with_narration ("replaces all shot audio, including dialogue, lip-sync and ambience").

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 the core action, cost, and return contract, then trails into caveats. Slightly overlong because mode and video_fit semantics are restated almost verbatim from their schema descriptions, but nearly every sentence carries operational value.

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 complex, credit-charging, asynchronous assembly job with no output schema, the description covers cost, async contract, failure/refund behavior, dedupe, limits, and where the result lands (assembledUrl, status preview_ok). An agent has everything needed to call it correctly and interpret the outcome.

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 baseline would be 3, but the prose adds real meaning: it warns that id must come from create_film_project/list_film_projects and never a placeholder, explains the cost consequence of video_fit choices, and spells out the narration/audio-loss tradeoff more pointedly than the schema text does. Minor duplication with schema descriptions keeps it from 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?

States a specific verb and artifact: "Queue an assembled first cut for an existing film project by concatenating every rendered shot clip in order." It also implicitly distinguishes itself from merge_media for non-project inputs, so an agent can tell the two apart without opening schemas.

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 gating ("Run only after every intended shot has a completed clipUrl"), explicit alternative ("for direct video inputs not stored in a film project use merge_media"), and explicit rerouting when narration would destroy audio ("set with_narration to false ... then layer narration or music under that audio with add_audio_to_video (audio_mode=mix)"). Mode selection guidance is also given.

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.