Skip to main content
Glama

Find gaps in a sequence

find_sequence_gaps
Read-onlyIdempotent

Identify empty stretches on every track in a sequence, including before the first clip and between clips, and return each gap’s timing and neighboring clip indices.

Instructions

Find the empty stretches on every track of a sequence: before the first clip (from time 0) and between clips; time after the last clip is not a gap. Returns one entry per gap with track_type, track_index, start, end and duration in seconds and the indices of the neighbouring clips, plus count and total_gap_duration. Empty tracks report nothing. Use get_track_gaps for one track, close_all_gaps to remove gaps.

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

Input Schema

NameRequiredDescriptionDefault
track_typeNoOnly look at "video" or "audio" tracks. Omit for both.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
min_durationNoIgnore gaps shorter than this, in seconds. Default and minimum: half a frame (smaller values are raised to it).
sequence_nameNoSequence name; used only when sequence_id is not given.
include_leadingNoAlso report the gap between time 0 and the first clip of a track. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered structurally. The description still adds real value by defining gap boundary semantics, stating that empty tracks report nothing, and enumerating the returned fields (track_type, track_index, start, end, duration, neighbour clip indices, count, total_gap_duration). That is solid behavioral disclosure of results and edge cases without contradicting the read-only annotation.

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?

Front-loaded with the core definition, then the return shape, then sibling routing; every sentence carries information. The return-field enumeration is a dense clause that could read more cleanly, but nothing is genuinely 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?

There is no output schema, and the description compensates by listing the returned fields and the aggregate count and total_gap_duration. Combined with the gap-boundary definition and empty-track rule, an agent has enough to call and interpret it, though per-track scoping vs. sequence-wide aggregation could be spelled out slightly more.

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%, with enum values, defaults and the half-frame minimum for min_duration all documented in the schema itself. The description says nothing about min_duration, sequence_id vs sequence_name precedence, or track_type filtering beyond what the schema states, 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 ('Find the empty stretches on every track of a sequence') and immediately pins down the semantics of 'gap' (from time 0 to first clip, between clips, but not after the last clip). This distinguishes it cleanly from get_track_gaps, which is explicitly scoped to one track.

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?

Names both relevant alternatives and the conditions that select them: get_track_gaps for a single track, close_all_gaps to remove gaps rather than report them. It also notes that omitting sequence_id uses the active sequence, so the agent knows the default path.

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