Skip to main content
Glama

Add Clip to Sequence

lab_add_clip

Append a shot to a sequence's timeline. Call it once per shot, in cutting order — start_time is computed from the clips already there, so appending in order is enough. The continuity pass reads exactly this timeline: a shot missing here is a shot nobody checks. Returns the new clip's index and the sequence's total duration.

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": {
      "seq_id": "<seq_id>",
      "type": "<type>"
    },
    "name": "lab_add_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText content for type 'title', 'credits' or 'lower_third'
typeYesWhat this clip is. 'image' references a generated image via source_id; 'title', 'credits' and 'lower_third' carry `text` instead. 'lower_third' is an OVERLAY: appended without start_time it is laid over the clip before it (track V2), takes no time of its own and never runs past that clip's end; metadata.versatz_s delays it inside that clip. As the very first clip it is a card on black. 'video' is where it gets sharp — read the source_id note before using it
seq_idYesSequence id (from lab_create_sequence/lab_list_sequences) — positive integer as string
metadataNoJSON stored alongside the clip. The continuity pass reads video_id (a generated video's id — it checks the start image), image_url (a frame URL), location_id and scene_num from here; for a 'lower_third', versatz_s (seconds into the clip it sits on) sets when it appears; for a 'video' in a camcorder-preset project, zoom sets the camcorder zoom the export renders: {t_start (source seconds), box: [x, y, width, height] normalised 0..1, dauer_s 0.2-1.5, default 0.5} overrides the detected suggestion, false switches it off; without it the export uses the clip's detected suggestion (lab_job_status: metadata.zoom_erkennung); other keys are stored as-is
source_idNoFor type 'image': the id of a generated image (from lab_generate). For type 'video': source_id is IGNORED by the continuity pass (a video id used to be misread as an unrelated image, see vault/followups/2026-08-04-continuity-loest-source-id-blind-auf.md). Give a video clip its frame via metadata instead: metadata.video_id = the generated video's id (the pass checks the video's start image), or metadata.image_url = a frame URL. Without either, the shot is counted as 'not checked' (summary.ohne_frame).
start_timeNoAbsolute start on the timeline. Omit to append after the last clip (the normal case); set it only to place a clip deliberately
duration_secondsNoClip duration in seconds. Backend default is 5.0 — pass the clip's REAL length, otherwise the sequence duration and the render drift apart

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / metadata / description
      Previous value: -"JSON stored alongside the clip. The continuity pass reads video_id (a generated video's id — it checks the start image), image_url (a frame URL), location_id and scene_num from here; for a 'lower_third', versatz_s (seconds into the clip it sits on) sets when it appears; other keys are stored as-is"New value: +"JSON stored alongside the clip. The continuity pass reads video_id (a generated video's id — it checks the start image), image_url (a frame URL), location_id and scene_num from here; for a 'lower_third', versatz_s (seconds into the clip it sits on) sets when it appears; for a 'video' in a camcorder-preset project, zoom sets the camcorder zoom the export renders: {t_start (source seconds), box: [x, y, width, height] normalised 0..1, dauer_s 0.2-1.5, default 0.5} overrides the detected suggestion, false switches it off; without it the export uses the clip's detected suggestion (lab_job_status: metadata.zoom_erkennung); other keys are stored as-is"
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive write; the description adds real behavioral context beyond that — start_time is derived from existing clips, order of calls matters, and the continuity pass consumes exactly this timeline so omissions go unchecked. It does not disclose failure modes (invalid seq_id, what happens on out-of-order placement).

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?

Four short sentences, front-loaded with the action, then ordering guidance, then the downstream consequence, then the return value. Every sentence carries information, though the continuity-pass sentence is slightly rhetorical ('a shot nobody checks').

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

Completeness4/5

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

For a 7-parameter mutation tool with no output schema, the description usefully states the return value (new clip index and total duration) and the ordering contract. Type-specific edge cases (lower_third overlays, video source_id being ignored) are covered by the schema rather than the description, which is acceptable given full coverage.

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 coverage is 100%, so parameters (type, source_id, metadata, duration) are already fully documented. The description reinforces the start_time append semantics but adds little that the schema does not already say, so baseline 3 applies.

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 ('Append a shot to a sequence's timeline') and scopes it to one shot per call. This clearly separates it from sequence-level siblings like lab_create_sequence or read-side tools like lab_get_sequence.

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 usage discipline: call once per shot, in cutting order, and omit start_time because it is computed from existing clips. It does not name an explicit alternative or exclusion (e.g. how to insert mid-timeline or reorder), so it falls short of the top band.

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