Skip to main content
Glama

Select clips in a time range

select_clips_in_range
Idempotent

Select timeline clips that intersect or lie fully within a time range, optionally scoped to a track type or track, and return the matched clips and resulting selection.

Instructions

Select the clips that lie in a time range of the sequence. mode "overlap" (default) takes every clip that intersects the range; "inside" takes only clips entirely within it. Optionally limited to one track type or one track. Returns the matched clips and the resulting selection. To list clips in a range without selecting them use get_clips_in_range.

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "select_clips_in_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesRange end, in seconds of sequence time. Must be greater than start.
modeNo"overlap" (default): clips that intersect the range. "inside": clips fully contained in it.
startYesRange start, in seconds of sequence time.
track_typeNoOnly "video" or only "audio" tracks. Default: both.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNoOnly this 0-based track (0 = V1 or A1). Needs track_type. Omit: all tracks.
sequence_nameNoSequence name; used only when sequence_id is not given.
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.4/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, idempotent local mutation, and the description adds meaning beyond them: it discloses both the return value ('matched clips and the resulting selection') and the selection-replacement behavior implied by add_to_selection defaulting to false. It stops short of stating whether prior selection is lost when add_to_selection is true, which would have made it a 5.

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?

Four short sentences, front-loaded with the core action, then mode semantics, then scope limits, then the sibling redirect. No filler and nothing redundant.

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 an 8-parameter selection tool with no output schema, the description supplies the essential missing piece (what is returned) and the mode defaults. Sequence resolution fallback to the active sequence is left entirely to the schema, a minor gap rather than a blocking one.

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 coverage is 100% and the schema already enumerates and describes every parameter, including the mode and track_type enums and the sequence_id/sequence_name precedence. The description restates mode semantics and the track-narrowing option but adds no syntax or formatting detail beyond the schema, so the baseline 3 applies.

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 ('Select the clips that lie in a time range of the sequence') and immediately defines the two operating modes. It also names the sibling get_clips_in_range as the non-selecting counterpart, so an agent can distinguish the two without opening a 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?

Gives explicit selection criteria ('overlap' default vs 'inside'), notes optional narrowing by track type or single track, and closes with a clear alternative rule: use get_clips_in_range to list without selecting. When-to-use and when-to-use-something-else are both covered.

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