Skip to main content
Glama

Change a transition's duration

set_transition_duration
Destructive

Adjust the duration of an existing Premiere Pro transition while preserving its cut position, alignment, and Effect Controls settings; falls back to removing and re-adding it if Premiere refuses.

Instructions

Change the duration of an existing transition, chosen by transition_index or time. It stays on the same cut or clip edge and keeps its alignment (or takes the alignment given); its Effect Controls settings are kept. The new start/end are written directly; if Premiere refuses them, the transition is removed and re-added with the same name (method is then "removed and re-added" and custom settings are lost). Returns {before, after, method}.

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>",
      "duration": "<duration>"
    },
    "name": "set_transition_duration"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoUsed when transition_index is not given: a sequence time in seconds inside the transition.
durationYesNew duration in seconds, up to 60. Snapped to whole frames.
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.
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.6/5.0
Behavior5/5

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

The annotations already flag destructiveHint=true, but the description goes further and quantifies the risk: the direct write may fail and trigger a remove-and-re-add fallback that loses custom Effect Controls settings. It also discloses what is preserved (cut/edge position, alignment, Effect Controls) and what is returned, which annotations cannot convey.

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?

Four dense sentences, each carrying distinct information: scope, preservation rules, the failure fallback, and the return shape. The most important constraint (possible settings loss) is not buried, and there is no restatement of the title or schema defaults.

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?

With eight parameters, no output schema, and a destructive mutation, the description covers the return value, the fallback semantics, and the preservation guarantees. The only remaining gap is routing guidance relative to the add/replace_transition siblings.

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 baseline is 3, but the description adds real meaning beyond the schema: alignment is preserved unless the parameter overrides it, and time is only consulted when transition_index is absent. These interactions between parameters are not spelled out in the schema property descriptions.

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 opens with a specific verb and resource ("Change the duration of an existing transition") and states the two selection keys (transition_index or time). That is enough for an agent to distinguish it from add_transition_at_cut or replace_transition siblings, which create or swap transitions rather than resize an existing one.

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?

It makes clear this only applies to an existing transition that must first be located (implying list_track_transitions for the index) and explains the alignment choice behavior. It stops short of naming alternatives or stating when-not to use it, e.g. that clip resizing should go to set_clip_duration, so the guidance is clear but not exclusionary.

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