Skip to main content
Glama

Select clips by id

select_clips
Idempotent

Selects timeline clips by clip_id, optionally keeping the current selection and including linked clips; fails without changing anything if any id is missing.

Instructions

Select timeline clips by clip_id. Replaces the current selection unless add_to_selection is true. Linked partners are not selected unless include_linked is true. Fails with NOT_FOUND (changing nothing) if any id does not exist in the sequence. Like every select_* tool it returns matched_count (clips this call matched), selected_count and clips (the whole selection after the call).

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": {
      "clip_ids": "<clip_ids>"
    },
    "name": "select_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idsYesClip ids (clip_id values from find_clips, list_clips or any tool that lists clips).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
include_linkedNoAlso select the clips linked to it (e.g. the audio of a video clip). 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.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the existing selection is overwritten, that linked/partner clips are opt-in, and that validation is atomic — a bad id fails with NOT_FOUND and changes nothing. It also pre-empts a likely misreading of destructiveHint=false by making clear the effect is on selection state rather than clip data, and documents the return payload of the select_* family.

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 tight sentences, each carrying a distinct fact: identity/scope, replace-vs-add, linked-partner exclusion, atomic failure, then return shape. No filler and the core selection behavior is front-loaded ahead of the return-value note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly supplies the return contract (matched_count, selected_count, clips) and clarifies the distinction between matched versus total selected. Combined with the atomic-failure rule and the selection-replacement semantics, an agent has everything needed to call this safely on the first attempt.

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 already 100% and includes defaults for include_linked and add_to_selection, so the description's restatement of those flags adds little new semantics. The genuinely additive element — that clip_ids must all exist in the sequence or nothing is selected — is framed behaviorally rather than as parameter documentation. Baseline 3 is appropriate when the schema does the heavy lifting.

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 with the identifying key: 'Select timeline clips by clip_id.' The 'by clip_id' qualifier distinguishes it from siblings like select_clips_by_name, select_clips_by_item and select_clips_in_range without the agent needing to open the schema.

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?

Gives concrete operational guidance: the call replaces the selection unless add_to_selection is true, and linked partners are excluded unless include_linked is true. It also states the failure condition (any unknown id aborts with NOT_FOUND). It stops short of naming an explicit alternative (e.g. 'use select_clips_by_name when you only have names'), so it is clear context rather than full routing guidance.

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