Skip to main content
Glama

Select clips by name

select_clips_by_name
Idempotent

Select timeline clips by matching their names using substring, exact, wildcard, or regex patterns; filter video or audio and optionally add matches to the current selection.

Instructions

Select every timeline clip whose name matches a pattern (substring by default; exact, wildcard or regex via match). Clip names default to the source file name. Returns the matched clips; matching nothing is not an error (count 0) and, without add_to_selection, leaves nothing selected.

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": {
      "name_pattern": "<name_pattern>"
    },
    "name": "select_clips_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
track_typeNoOnly match "video" or only "audio" clips. Default: both.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
name_patternYesText to look for in the clip name, e.g. "interview" or "Shot *".
sequence_nameNoSequence name; used only when sequence_id is not given.
case_sensitiveNoCompare names case-sensitively. Default false.
add_to_selectionNoKeep the current selection and add to it. Default false: the current selection is replaced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: the selection is replaced by default and add_to_selection opts into additive behavior, plus a no-match result is explicitly non-error (count 0). This is consistent with readOnlyHint=false (it mutates selection state) and destructiveHint=false (it only touches selection). It does not say whether the previous selection's clip references remain valid or how results are ordered.

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?

Three tight clauses, front-loaded with the action and its matching semantics before the edge-case notes on zero matches and selection replacement. No sentence is filler and the parenthetical default-mode note replaces a longer explanation.

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 7-parameter tool with full schema coverage and no output schema, the description covers purpose, matching modes, sequence targeting, and selection side effects, plus a note on what is returned. Missing only minor details such as result ordering or whether the returned objects are full clip records.

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 would be 3, but the description adds meaning the schema lacks: clip names default to the source file name (important for pattern construction) and the contains-vs-exact/wildcard/regex choice is framed as a single 'match' knob. It does not address the interplay of sequence_id and sequence_name beyond noting the fallback.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Select every timeline clip whose name matches a pattern') and pins the matching criterion to clip name, which is what separates it from id-based siblings like select_clips_by_item. It stops short of naming any sibling explicitly, so an agent must infer the distinction from the tool name alone.

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 default match mode (substring) with the options to override, that the active sequence is used unless sequence_id/sequence_name is given, and what happens when nothing matches. It does not explicitly say when to prefer this over select_clips, select_all_clips or select_clips_in_range, leaving that routing to the agent.

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