Skip to main content
Glama

Set duration of many clips

set_clips_duration

Set the same duration for multiple Premiere Pro clips by clip IDs or track, with optional ripple to keep the timeline contiguous and linked audio/video in sync.

Instructions

Give many clips the same length in one call, e.g. make every still 3 s. Choose the clips with clip_ids, or with a track (track_type + track_index), optionally only stills (stills_only=true). ripple=true (default) keeps the timeline contiguous and in sync: after each changed clip, all later clips on every track shift by that clip's change (a track where that would make clips collide is left alone and listed in tracks_not_rippled). ripple=false only moves each clip's end (a clip stops growing at the next clip). Linked audio/video clips get the same duration when include_linked is true (default). Video and audio clips cannot grow beyond their source media. Returns every changed clip.

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

Input Schema

NameRequiredDescriptionDefault
rippleNoShift all later clips on every track after each changed clip. Default true.
clip_idsNoClips to change. Omit to select by track.
durationYesNew length of each clip, in seconds. Snapped to a frame.
track_typeNoTrack type when selecting by track. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
stills_onlyNoOnly change clips whose source is a still image. Default false.
track_indexNo0-based track index when selecting by track. Omit for every track of track_type.
sequence_nameNoSequence name; used only when sequence_id is not given.
include_linkedNoAlso resize the clips linked to this one (the audio of a video clip, or the video of an audio clip). Default true.

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?

Goes well beyond the annotations: discloses the ripple side effect (all later clips on every track shift), the collision fallback (colliding tracks are left alone and reported in tracks_not_rippled), the non-ripple grow limit at the next clip, linked audio/video resizing, and the source-media length ceiling. That is exactly the mutation behavior an agent needs before calling it.

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 the purpose, then selection, then behavior, then the return — a sensible order with no filler. The middle sentences are heavily clause-stacked (ripple semantics), which is dense but each clause carries distinct information.

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 9-parameter mutation tool with no output schema, the definition covers selection modes, both ripple paths, linked-clip behavior, media-length limits, and the return ("Returns every changed clip", plus tracks_not_rippled). Nothing an agent needs to call it correctly is missing.

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: which parameters form the two selection modes, that ripple and include_linked default to true, and the semantic consequence of include_linked (linked audio/video get the same duration). It repeats some default values already in the schema, which caps it at 4.

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 ("Give many clips the same length in one call") and the plural scope implicitly contrasts with the sibling set_clip_duration. An agent can tell exactly what it changes and in what quantity without opening the schema.

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?

Explicitly describes the two selection paths (clip_ids vs. track_type + track_index, optionally narrowed with stills_only) and states that selection by track is the fallback when clip_ids is omitted. It does not name a sibling alternative such as set_clip_duration for single-clip edits, so it stops short of full when-to-use-vs-alternative routing.

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