Skip to main content
Glama

Compile / Re-render a Video Project

compile_montage

Rebuild and validate a project's timeline from its folder, honoring montage-order.json and replaced clips, then render the final MP4 output.

Instructions

Use after run_cinema_pipeline in interactive_montage mode, or to re-cut any project: rebuilds the timeline from the project folder (honoring an optional montage-order.json and any clip files you replaced), validates it (no gaps, no missing files) and renders the MP4. Offline; no network. Returns the MP4 path, validation warnings and next steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
renderNoRender after compiling (default true).
projectIdYesThe projectId returned by run_cinema_pipeline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that the operation is offline ('no network'), that it rebuilds rather than merely copies, that it validates for gaps and missing files, and that it renders an MP4. It does not state whether an existing render is overwritten or what permissions are needed, but for a local compile step the key traits are disclosed.

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?

Front-loaded with the usage trigger, then the behavior, then the offline note and return values. Three tight sentences with no filler; every clause adds actionable information.

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?

Despite no output schema and no annotations, the description states the return payload (MP4 path, validation warnings, next steps), the offline constraint, and the prerequisites. Nothing an agent needs to call this correctly appears to be missing.

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 100%, so the two parameters are already documented, making 3 the baseline. The description adds related context about implicit inputs (montage-order.json and replaced clip files) but does not explain the declared 'render' flag or 'projectId' beyond what the schema says.

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?

The description uses specific verbs and resources: 'rebuilds the timeline from the project folder... validates it... and renders the MP4.' This clearly separates it from the pipeline sibling (run_cinema_pipeline) which is named explicitly as the upstream step, so an agent can tell the two apart without opening either 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?

It states exactly when to use it ('after run_cinema_pipeline in interactive_montage mode, or to re-cut any project'), which implicitly names the alternative workflow for initial production. The trigger conditions and the sibling tool are both explicit, leaving little to inference.

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