Skip to main content
Glama

Extend selection to linked clips

select_linked_clips
Idempotent

Extend the timeline selection to include all clips linked to selected video or audio, ensuring linked media is included before removal. Returns added clip count and updated selection.

Instructions

Extend the current timeline selection so it also contains every clip linked to a selected clip (the audio of a selected video clip and vice versa). Script selection does not follow links by itself, so call this before remove_selected_clips when linked audio/video should go too. Returns how many clips were added and the resulting selection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "select_linked_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

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 mutation that is idempotent and non-destructive, and the description reinforces this by framing it as extending the existing selection rather than replacing it. It also discloses the return payload ('how many clips were added and the resulting selection'), which is valuable given there is no output schema. Minor gap: it does not say what happens when nothing is selected or no links exist.

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 sentences, front-loaded with the action, then the rationale/ordering, then the return value. No filler and nothing repeated from the schema or title.

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 simple zero-required-parameter selection tool with full schema coverage, the description covers purpose, workflow ordering, and return shape, which is enough to call it correctly. Only edge-case behavior (empty selection, clips without links) is unaddressed.

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?

The description contributes nothing about sequence_id or sequence_name; both are fully documented in the schema at 100% coverage. Baseline 3 applies since the schema carries parameter meaning on its own.

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 ('Extend the current timeline selection') plus the exact semantics of the extension: every clip linked to a selected clip, with the parenthetical clarifying the audio/video pairing. This clearly separates it from get_linked_clips (read-only lookup) and the select_clips_by_* siblings.

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?

Explicitly says why the tool is needed ('Script selection does not follow links by itself') and names both the trigger condition and the downstream tool: call before remove_selected_clips when linked audio/video should also be removed. That is a concrete when-to-use plus an ordered workflow.

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