Skip to main content
Glama

compose_timeline

Render a JSON timeline of clips into one output file, concatenating track 0 clips in order. Specify paths, start/end times, and tracks to produce a single edited video.

Instructions

Render a JSON timeline (clips with path, start/in, end/out, track) to one output file.

Timeline schema: {name, clips:[{path,start,end,track,label}], width, height, fps, markers}. Track 0 clips are concatenated in order. Optional save_as persists the timeline JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
save_asNo
reencodeNo
timelineYes
overwriteNo
output_pathYes
allow_any_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries full behavioral disclosure burden. It mentions the track-0 concatenation rule and the optional save_as, but omits behaviors of reencode, overwrite, and allow_any_path (e.g., default true, path restrictions). No side effects or prerequisites are disclosed beyond the basic render action.

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?

The description is concise and front-loaded with the primary action. It includes a compact schema definition and a key behavioral rule. However, it could be structured with explicit parameter notes, but overall it is efficient without verbosity.

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?

An output schema exists, so return-value details aren't needed. However, the description fails to explain critical parameters (reencode, overwrite, allow_any_path) and lacks guidance on when to use this tool vs siblings. For a tool with 6 parameters and nested objects, more context is warranted.

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 0%, so the description must compensate. It explains the timeline schema and mentions save_as, but does not explain reencode, overwrite, or allow_any_path. Partial coverage; not all parameters are documented in either schema or description.

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?

The description clearly states it renders a JSON timeline to an output file, with a specific resource (timeline) and action (render). It doesn't explicitly differentiate from siblings like concat_clips or run_ffmpeg, but the timeline-composition focus is distinct enough. The inclusion of a timeline schema adds clarity.

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?

The description provides context on how the timeline is structured (track 0 concatenation) but does not explicitly state when to use this tool over alternatives like concat_clips or trim_clip. It implies usage for timeline-based rendering but lacks explicit when/when-not guidance.

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