Skip to main content
Glama

Close gaps

close_gaps

Ripple clips on specified tracks leftward to remove timeline gaps, optionally starting from a chosen time. Use it to close empty spaces and keep edits compact in Premiere Pro.

Instructions

Ripple clips on given tracks left so no gaps remain (from an optional time).

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": {
      "tracks": "<tracks>"
    },
    "name": "close_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNo
tracksYes
projectNo
sequenceNoSequence id/name (default: active)
checkpointNoClone the sequence as a [checkpoint] first
expected_project_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.3

TDQS

B3.1/5.0
Behavior3/5

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

Annotations only declare openWorldHint=false and destructiveHint=false, so the description's disclosure that clips actually shift left is meaningful behavioral content. However it says nothing about which sequence is mutated by default, what happens to clips that would collide, or that the existing 'checkpoint' parameter can snapshot the sequence first — all of which matter for a timeline mutation.

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?

One front-loaded sentence with the operation first and the optional anchor in parentheses; no filler. The nested parenthetical makes it slightly harder to parse than necessary but nothing is wasted.

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

Completeness2/5

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

For a 6-parameter timeline-mutating tool with no output schema and thin annotations, this sentence is too sparse: scope defaults, side effects on adjacent clips, and the safety role of 'checkpoint' are all unstated. An agent can guess the intent but cannot predict the result of calling it.

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 only 33%, so the description must compensate, and it does explain 'tracks' and 'from' as a time anchor. It leaves 'project' and 'expected_project_path' entirely unexplained and does not clarify the default scope implied by 'sequence' beyond the schema's own note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific editing operation (ripple clips left) and its target (given tracks) with a stated goal (no gaps remain), which is far more than a restatement of the name. It stops short of distinguishing itself from timeline-editing siblings such as edit_clips.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus other timeline-edit tools, no prerequisites (e.g. unlocked tracks, an active sequence), and no exclusions. The only usage hint is the parenthetical 'from an optional time', which gestures at a parameter rather than a use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.