Skip to main content
Glama

Add audio transition to a clip

add_audio_transition

Adds an audio transition, such as a fade or crossfade, to the start, end, or both edges of one audio clip, joining adjacent clips at a cut or creating a single-sided fade.

Instructions

Add a audio transition at the start, end or both edges of one audio 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 video track fails with BAD_ARGS (pass track_type "audio" when addressing the clip by position); 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_audio_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_audio_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExact transition name, case-insensitive, e.g. "Constant Power", "Constant Gain", "Exponential Fade". Default "Constant Power".
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.6/5.0
Behavior4/5

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

Annotations only declare write, non-idempotent, non-destructive. The description adds real value beyond them: documented failure modes (BAD_ARGS for a clip on a video track, FAILED for a clip too short), the replace-vs-skip behavior when a transition already exists, and the full return shape. It loses a point only because the interaction between replace_existing=true and the non-destructive hint is implicit rather than spelled out.

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 purpose, alternatives, and error cases in a logical order, with no filler sentences. It is a single very dense block and the long field enumeration for each returned transition is heavy, though justified by the absence of an output schema.

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 an 11-parameter mutation tool with no output schema, the description covers the missing pieces: preconditions on clip track/type and length, edge-vs-cut semantics, replacement behavior, sibling routing, and a complete enumeration of returned fields including null sides.

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 the schema already defines every parameter, but the description still contributes: it says to pass track_type "audio" when addressing a clip by position (the schema default "video" would otherwise silently fail) and explains how alignment degrades to single-sided at an edge with no neighbor.

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?

Opens with a specific verb and resource plus the exact scope: "Add a audio transition at the start, end or both edges of one audio clip." It immediately distinguishes itself from add_transition_at_cut and add_transitions_to_all_cuts by scope, so an agent can pick it out 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?

Explicitly routes to alternatives: "Use add_transition_at_cut to target a cut by time, add_transitions_to_all_cuts for a whole track," and names list_audio_transitions as the source of valid names. It also states the key selection rule (one clip, edge-based) and the fallback behavior when no adjacent clip exists.

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