Skip to main content
Glama

Enable or disable many clips

set_clips_enabled
Idempotent

Enable or disable multiple Premiere Pro timeline clips at once, by clip IDs or filter criteria, and get matched and changed counts back.

Instructions

Enable or disable several timeline clips in one call: either the clips listed in clip_ids, or every clip matching the filter arguments (all given conditions must hold). Pass clip_ids, at least one filter, or all=true (BAD_ARGS otherwise). Linked clips are not changed unless they match too. Returns matched_count, changed_count (clips whose state actually changed) and the matched clips.

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": {
      "enabled": "<enabled>"
    },
    "name": "set_clips_enabled"
  }
}

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.
enabledYestrue = enable, false = disable.
item_idNoOnly clips made from the project item with this id.
clip_idsNoExact clips to change. 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.
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 mutation, idempotency, and non-destructiveness; the description adds real value beyond them: the BAD_ARGS outcome for missing selectors, selector precedence (clip_ids overrides filters and all), the linked-clip side effect ('not changed unless they match too'), and the returned counters. It does not discuss permissions or scope of effect across sequences, but the essentials are covered.

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?

Three compact sentences, front-loaded with what the tool does, then selection rules, then return shape. Dense but every clause carries information; no filler or restatement of the name.

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?

For a 20-parameter mutation tool with no output schema, the description still declares the return fields and the selection contract, and annotations cover the safety profile. Cross-parameter constraints such as track_index requiring track_type are left to the schema, which is acceptable at full coverage.

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 documents every parameter, yet the description still adds semantics the schema lacks: that multiple filter arguments are ANDed, that clip_ids short-circuits filters and all, and that the argument set must be non-empty. That is genuine meaning beyond the structured fields.

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 pair (enable/disable), the resource (timeline clips), and the bulk scope ('several ... in one call'), which is enough to distinguish it from the singular sibling set_clip_enabled and from read-only siblings like find_clips.

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?

Explains the three valid targeting modes (clip_ids, at least one filter, or all=true) and the failure when none is supplied, plus that all filter conditions must hold. It stops short of naming an alternative tool or saying when a caller should prefer the singular set_clip_enabled instead.

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