Skip to main content
Glama

Get gaps of a track

get_track_gaps
Read-onlyIdempotent

Find empty stretches on one Premiere Pro track, before the first clip and between clips, and return each gap's start, end, duration, and next clip index for removal or review.

Instructions

Find the empty stretches of one track: before the first clip and between clips; time after the last clip is not a gap. Returns each gap's start, end and duration in seconds and the index of the clip after it, plus count and total_duration. Read-only: use close_gap_at or close_all_gaps to remove gaps, find_sequence_gaps for every track.

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": {
      "track_type": "<track_type>",
      "track_index": "<track_index>"
    },
    "name": "get_track_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_typeYesTrack type: "video" or "audio".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexYes0-based track index (0 = V1 or A1).
min_durationNoIgnore gaps shorter than this, in seconds. Default 0; gaps shorter than half a frame are never reported.
sequence_nameNoSequence name; used only when sequence_id is not given.
include_leadingNoAlso report the gap between the sequence start and the first clip. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description still adds real value by defining what counts as a gap (no trailing-gap reporting) and by describing the returned fields (start, end, duration, clip index, count, total_duration). It omits only minor operational detail such as behavior when the track is empty or when no gaps 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?

Two dense sentences, front-loaded with the definition, followed by return shape and routing. Every clause carries information; nothing is repeated from the title.

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?

For a read-only query tool with six fully documented parameters and no output schema, the description supplies the gap definition, the return fields, and the sibling routing needed to call it correctly and interpret results.

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 per-parameter descriptions, so the schema carries the parameter burden and the baseline is 3. The description's gap definition indirectly clarifies include_leading and min_duration semantics, but it adds no format or interaction detail beyond what the schema already states.

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 of one track') and immediately defines the boundary condition that matters: gaps before the first clip and between clips count, time after the last clip does not. That definitional precision plus the named siblings makes it unambiguous which tool this is.

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 routes the agent: close_gap_at or close_all_gaps to remove gaps, find_sequence_gaps for every track at once. Both alternatives and the condition selecting each are stated, leaving nothing to inference.

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