Skip to main content
Glama

timeline.close_gaps

Close the empty gaps between SEVERAL clips at once (a ripple: each clip after the first is pulled left against its predecessor, and everything later on the track moves with it, so clips after the span keep their spacing). Select the clips with exactly one of itemIds (every gap inside the span from the earliest to the latest of them is closed), trackId (every clip on one track) or all:true (every clip on every track; add trackType to limit to video or audio) — for 'the whole timeline' use all:true, do NOT list ids. The gap before the earliest selected clip is left alone (use timeline.close_gap for that). Crossfade overlaps are preserved. One undo step. Fails if there are no gaps.

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": {
      "projectId": "<projectId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "timeline.close_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoEvery clip on every track — narrow with trackType
itemIdsNoThese specific clips
trackIdNoEvery clip on this track
projectIdYes
trackTypeNoWith all: only tracks of this type
expectedVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the ripple consequence for later clips, that crossfade overlaps are preserved, that the operation is a single undo step, and the failure precondition ("Fails if there are no gaps"). These are exactly the behaviors an agent cannot infer from the schema and would otherwise learn only by causing a bad edit.

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?

The core action is front-loaded and every sentence carries information — no filler. It is, however, one dense paragraph with several nested parenthetical asides, which costs a little readability for an agent parsing it in a single pass.

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 mutation tool with six parameters, no annotations, and no output schema, the description covers selection modes, ripple side effects, undo granularity, and the failure case. The omission of expectedVersion (optimistic concurrency) is the only meaningful hole an agent might need to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds real meaning beyond the 67%-covered schema: itemIds implies a span from earliest to latest (so gaps between them, not just adjacent pairs, are closed), all can be narrowed with trackType, and the mutual exclusivity of the three selectors is stated explicitly — a constraint the schema does not encode (no oneOf). projectId and expectedVersion remain unexplained, which is the only real gap.

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?

"Close the empty gaps between SEVERAL clips at once" names a specific verb (close), resource (gaps between clips) and scope (several at once), then immediately explains the ripple mechanic. It explicitly separates itself from the sibling timeline.close_gap by scoping that tool to the single leading gap.

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?

It states the selection contract precisely: exactly one of itemIds, trackId, or all:true, and gives a directive for the common ambiguity ("for 'the whole timeline' use all:true, do NOT list ids"). It also routes the excluded case to the correct alternative ("The gap before the earliest selected clip is left alone (use timeline.close_gap for that)").

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.