Skip to main content
Glama

Get clips at playhead

get_clips_at_playhead
Read-onlyIdempotent

Returns the clips under the playhead or a specified time across every sequence track, with clip IDs, track, timing, offset, and source position for editing decisions.

Instructions

Return the clips under the playhead (or under time) on every track of a sequence, at most one per track, topmost video track first, then audio in track order. A clip covers its start but not its end. Each clip has clip_id, track, start/end, offset (seconds into the clip) and source_time (position in the source media, seconds). get_clip_at_time does the same for a given time with a track filter.

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": "get_clips_at_playhead"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoTimeline time to inspect instead of the playhead, in seconds from the sequence start. Omit to use the playhead.
track_typeNoOnly look at tracks of this type: "video", "audio" or "both". Omit for "both".
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.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description's job is to add semantics beyond that — and it does: per-track cardinality, cross-track ordering, and the half-open boundary rule ('covers its start but not its end'). It also enumerates the returned fields, which matters because there is no output schema. It stops short of stating what happens with no active sequence or an out-of-range time.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core operation and its scoping, with no filler. The return-field enumeration is dense but earns its place given the absence of an output schema; only the closing sentence about get_clip_at_time is slightly muddled by the overlap in parameters.

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?

With no output schema, the description correctly takes on responsibility for describing return values (clip_id, track, start/end, offset, source_time), and it covers ordering and boundary semantics. What's missing is edge-case behavior — no active sequence, empty result, time outside the sequence — which keeps it from being fully complete.

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 100%, so all four parameters (time, track_type, sequence_id, sequence_name) are already documented with defaults and fallback behavior. The description echoes `time` as an alternative to the playhead but adds no syntax or format detail beyond the schema, so the baseline of 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 — 'Return the clips under the playhead (or under `time`) on every track of a sequence' — plus the exact cardinality ('at most one per track') and ordering ('topmost video track first, then audio in track order'). The sibling get_clip_at_time is named as the near-equivalent, so an agent can distinguish them without opening either 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?

Names the alternative get_clip_at_time and says it does the same thing for a given time with a track filter, which gives the agent a routing signal. However, since this tool also exposes `time` and `track_type`, the actual selection rule between the two tools remains slightly ambiguous — the description doesn't say why you'd pick one over the other when using an explicit time.

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