Skip to main content
Glama
leancoderkavy

Premiere Pro MCP Server

Select Clips By Pattern

select_clips_by_pattern

Select every Nth clip that matches optional name, duration, time-range, track, or enabled filters, using an offset, and return the count of selected clips.

Instructions

Select every Nth clip (with an offset) among clips that match optional name, duration, time-range, track, and enabled filters, then read back the selection count. Covers 'select every other clip on V1' and similar repetitive selections without changing the timeline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetNoZero-based index of the first candidate to select (default 0). Must be below every_nth.
every_nthNoSelect one clip out of every N candidates (default 1 = all candidates).
name_regexNoCase-insensitive ECMAScript 3 compatible regular expression the clip name must match.
track_typeNoTrack type to scan (default video).
count_scopeNoWhether the Nth count restarts on each track (default) or runs across all scanned tracks in timeline order.
end_secondsNoOnly clips overlapping before this sequence time.
track_indexNoRestrict to one track index.
name_containsNoCase-insensitive substring the clip name must contain.
start_secondsNoOnly clips overlapping at or after this sequence time.
add_to_selectionNoKeep the existing selection instead of replacing it (default false).
include_disabledNoInclude disabled clips as candidates (default true).
max_duration_secondsNoMaximum clip duration.
min_duration_secondsNoMinimum clip duration.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
dataNoTool-specific result data when ok is true.
toolYesThe registered MCP tool name.
errorNoFailure detail when ok is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.16.1

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses that the operation modifies selection state but does not alter the timeline ('without changing the timeline') — a meaningful behavior beyond the annotations, which only provide generic flags (readOnlyHint=false, destructiveHint=false). It also mentions the return of a selection count alerting the agent to an output value. No contradiction with annotations.

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?

Two sentences with no filler. The primary action is front-loaded, and the example sentence is both illustrative and practical. Every word earns its place, making it an efficient definition.

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 tool with 13 parameters and an output schema, the description adequately complements the schema by giving the overall selection pattern intent and the key side-effect of not changing the timeline. It does not detail every parameter (schema handles that) but covers the essential outcome and usage context. Minor gaps: it does not explicitly state that selection is replaced by default, though the add_to_selection parameter description does, so this is acceptable.

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?

With 100% schema description coverage, the parameter meanings are fully documented in the schema. The description summarizes them as 'optional name, duration, time-range, track, and enabled filters,' which adds no new information beyond a high-level grouping. It does not compensate or extend the schema, but given full coverage, 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 precisely states the tool's function: selecting every Nth clip with an offset, constrained by optional filters, and reading back the selection count. It also includes a concrete example ('select every other clip on V1') and distinguishes from other selection tools like select_clips_by_name or select_all_clips by its pattern-based approach. The verb 'select' is specific and the scope is clearly defined.

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 identifies the target use case: repetitive pattern selections ('select every other clip on V1') and says it operates 'without changing the timeline.' However, it does not explicitly state when to use this tool over selection siblings or mention any when-not conditions. The context is clear enough for an agent to infer typical usage but lacks explicit routing to alternatives.

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