Skip to main content
Glama

Replace a transition with another

replace_transition
Destructive

Swap an existing transition on a clip edge for a different one by index or time, keeping alignment and duration unless set; restores the original if the swap fails.

Instructions

Swap an existing transition for a different one (e.g. Cross Dissolve -> Dip to Black) on the same clip edge, chosen by transition_index or time. Keeps its alignment (an "offset" alignment becomes "center") and, unless duration is given, its duration. The old transition's Effect Controls settings are not carried over. If adding the new one fails, the original is put back. Returns {before, after}.

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": {
      "track_type": "<track_type>",
      "track_index": "<track_index>",
      "name": "<name>"
    },
    "name": "replace_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact name of the new transition, case-insensitive, of the track's type (see list_video_transitions / list_audio_transitions).
timeNoUsed when transition_index is not given: a sequence time in seconds inside the transition.
durationNoNew duration in seconds, up to 60. Default: keep the current one.
track_typeYesTrack type: "video" or "audio".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexYes0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.
transition_indexNo0-based index of the transition on the track, in time order (from list_track_transitions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: alignment is preserved with an offset becoming center, duration is preserved unless supplied, old Effect Controls settings are not carried over, and the original is restored if adding the new transition fails. It also states the return shape as {before, after}. These details substantially reduce uncertainty about a destructive mutation.

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?

The purpose is front-loaded in the first sentence, followed by behavior, fallback behavior, and return shape in a logical order. Every sentence adds useful information for correct invocation, with no filler.

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 a destructive, non-idempotent replacement tool with eight parameters and no output schema, the description covers the essential behavioral details: replacement target, alignment and duration handling, loss of Effect Controls settings, rollback on failure, and return value. The remaining parameter details are fully covered by the schema.

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 parameter meanings are already well documented. The description reiterates selection by transition_index or time and the duration default, but adds little parameter-specific detail beyond the schema. The baseline of 3 is appropriate.

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 states a specific verb and resource: swap an existing transition for a different one on the same clip edge. It also distinguishes replacement from adding or removing a transition and explains how the target is selected. An agent can identify this as the replacement operation rather than a sibling such as add_transition_at_cut or remove_transition.

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?

The description makes clear that this is for replacing an existing transition, not adding a new one, and explains selection by transition_index or time. It does not explicitly name sibling alternatives or state when not to use it, but the replacement context is unambiguous.

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