Skip to main content
Glama

Rename many clips with a pattern

rename_clips

Rename multiple Premiere Pro timeline clips at once using placeholders such as {n} or {name}, targeting specific clip IDs, filtered clips, or all clips.

Instructions

Rename several timeline clips with a pattern such as "Shot {n}". Targets: clip_ids (numbered in the given order), or every clip matching the filter arguments (numbered in timeline order: by start time, then video before audio, then track), or all=true. Placeholders: {n} running number, {name} current clip name, {source} project item name, {track} track label such as V1 or A2, {index} 0-based position in its track. Linked clips are not renamed unless they are targets too (rename_clip renames them). Returns renamed_count and each clip with previous_name and name.

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": {
      "pattern": "<pattern>"
    },
    "name": "rename_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNotrue = target every clip in the sequence; needed when neither clip_ids nor a filter is given. Default false.
matchNoHow name_pattern is compared with the clip name. "contains" (default): substring. "exact": whole name. "wildcard": * = any text, ? = one character, whole name. "regex": a regular expression.
mogrtNotrue: only Motion Graphics Template clips. false: exclude them. Omit: both.
item_idNoOnly clips made from the project item with this id.
paddingNoMinimum digits of {n}, zero-padded (3 gives 001). Default 1.
patternYesNew name pattern, e.g. "Shot {n}" or "{track} - {name}". Must not produce an empty name.
clip_idsNoExact clips to rename, in numbering order. When given, the filter arguments and all are ignored.
disabledNotrue: only disabled clips. false: only enabled clips. Omit: both.
selectedNotrue: only selected clips. false: only unselected clips. Omit: both.
range_endNoOnly clips that start before this sequence time, in seconds. Must be greater than range_start.
media_pathNoOnly clips whose source media file path contains this text (case-insensitive, slashes normalised).
track_typeNoOnly clips on "video" or on "audio" tracks. Default: both.
range_startNoOnly clips that end after this sequence time, in seconds.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNoOnly clips on this 0-based track (0 = V1 or A1). Needs track_type.
max_durationNoOnly clips at most this long on the timeline, in seconds.
min_durationNoOnly clips at least this long on the timeline, in seconds.
name_patternNoOnly clips whose timeline name matches this pattern (see match). Omit: any name.
start_numberNoFirst value of {n}. Default 1.
sequence_nameNoSequence name; used only when sequence_id is not given.
case_sensitiveNoCompare names case-sensitively. Default false.
adjustment_layerNotrue: only adjustment layers. false: exclude them. Omit: both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false; the description adds real context beyond that: the numbering order (start time, video before audio, track), the linked-clip caveat, and the returned fields (renamed_count, previous_name, name). It stops short of stating undo/confirmation behavior or whether prior names are recoverable outside the response.

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-loads the purpose and the targeting options, then placeholders, then the return shape. The sentences are long and parenthetical-heavy, but essentially every clause carries actionable information.

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 22 parameters and no output schema, the description supplies the return-shape summary and placeholder semantics that would otherwise be missing, which is the right priority. Minor gap: nothing is said about failure modes when the pattern yields duplicate or empty names beyond the schema's constraint.

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 each of the 22 parameters is already documented, which sets the baseline at 3. The description does add genuine value for the pattern placeholders ({n}, {name}, {source}, {track}, {index}) and the clip_ids numbering rule, but the large filter surface is left entirely to the schema.

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 ("Rename several timeline clips with a pattern") and immediately contrasts scope with the singular sibling by noting that linked clips are not renamed unless targeted, since rename_clip handles them. An agent can distinguish batch rename from single rename without opening either 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?

Explicitly enumerates the three targeting modes (clip_ids, filter arguments, all=true) and the precedence between them, and names rename_clip as the alternative for linked clips. Numbering order is spelled out per mode, so there is little left to inference.

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