Skip to main content
Glama

Add video transition to a clip

add_video_transition

Adds a video transition to a clip’s start, end, or both edges, joining adjacent clips at a cut or creating a single-sided fade when no neighbor exists.

Instructions

Add a video transition at the start, end or both edges of one video clip. If the edge touches an adjacent clip the transition joins the two clips (aligned per alignment); otherwise it is single-sided inside the clip (a fade from/to nothing). A clip on a audio track fails with BAD_ARGS; a clip too short for the duration fails with FAILED. Use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track. Names come from list_video_transitions. Returns {clip, added: [transition...], skipped: [...]}. Each transition is {track_type, track_index, transition_index, transition_id, name, match_name, start, end, duration, cut_time, alignment, edge, from_clip, to_clip}: times in seconds of sequence time; edge is "cut" (between two adjacent clips), "clip_start" or "clip_end" (single-sided); alignment is center / start_at_cut / end_at_cut / offset for cuts; from_clip / to_clip are {clip_id, name, clip_index, start, end} of the outgoing / incoming clip (null on the missing side).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_video_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExact transition name, case-insensitive, e.g. "Cross Dissolve", "Dip to Black", "Film Dissolve". Default "Cross Dissolve".
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
durationNoTransition duration in seconds, up to 60. Default 1. Snapped to whole frames.
positionNoWhich edge of the clip: "start" (in edge), "end" (out edge, default) or "both".
alignmentNoWhere the transition sits on a cut: "center" (default; half before, half after the cut), "start_at_cut" (begins at the cut and plays over the incoming clip) or "end_at_cut" (ends at the cut and plays over the outgoing clip). At a clip edge with no adjacent clip the transition is single-sided and lies inside the clip whatever the alignment.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.
replace_existingNoIf a transition already sits on that edge or cut: true (default) replaces it, false leaves it and reports the edge as skipped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent mutation, and the description adds real context beyond them: whether the edge joins two clips or is single-sided inside the clip, the two named error outcomes, and the replace_existing default of replacing an existing transition. It does not discuss permissions, undo, or whether replacement is reversible, which keeps it from a 5.

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?

Purpose and edge semantics are front-loaded, followed by routing alternatives and error cases, which is a sensible order. The final return-structure enumeration is dense and long, but it is justified because there is no output schema to carry it.

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?

An 11-parameter mutation tool with no output schema, and the description covers the missing piece: an exhaustive return shape including transition id, times, edge values, and from_clip/to_clip nullability. Combined with the stated failure modes and replacement behavior, an agent has enough to call it correctly and interpret the result.

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 the schema already carries names, defaults, ranges, and enum meanings for name, duration, position, alignment, clip_index, track_type, and replace_existing. The description reinforces a few points (alignment is moot at a single-sided edge, clip_id is preferred) but adds little the schema does not already say; much of its length goes to return-value structure rather than parameter meaning.

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 (add a video transition to one clip) and immediately scopes the geometry by edge: start, end, or both. It names the sibling tools it is not (add_transition_at_cut, add_transitions_to_all_cuts) and pairs transition names with list_video_transitions, so an agent can route without reading another 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?

Explicit routing guidance: use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track, and list_video_transitions to obtain names. It also states prerequisites implicitly through failure modes (BAD_ARGS on an audio-track clip, FAILED when the clip is too short), which tells the agent when this call will not succeed.

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

Deploy Server

Other Tools