Skip to main content
Glama

Remove silences from a clip or track

remove_silences
Destructive

Detects silent sections in a clip or audio track with ffmpeg and ripple-deletes their timeline ranges across all tracks, keeping linked video and audio in sync.

Instructions

Find the silent parts of a clip's source media with ffmpeg (or of every clip on one audio track), map them to timeline time (clip start + source time - clip in point), and ripple-delete those ranges. Each range is extracted on ALL tracks (like a sync-locked ripple delete), so linked video/audio and everything else stays in sync; material of other clips inside a removed range is removed too. Clips with a speed other than 100 % or reversed are refused. Pass clip_id (or track_type + track_index + clip_index), or track_type + track_index alone for every clip of that track. Returns the removed ranges (timeline times before the edit), seconds_saved and the sequence duration before and after. dry_run returns the ranges only. Needs ffmpeg.

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

Input Schema

NameRequiredDescriptionDefault
clip_idNoThe clip to clean up (from list_clips).
dry_runNotrue: return the plan without changing anything. Default false.
noise_dbNoLevel below which audio counts as silence, in dBFS. Default -30.
clip_indexNoWith track_type + track_index: one clip by position.
track_typeNoWith track_index (and no clip_index): every clip of that track. Default "audio".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index.
sequence_nameNoSequence name; used only when sequence_id is not given.
padding_secondsNoSeconds of sound kept on each side of a removed silence so words are not clipped. Default 0.1.
min_silence_secondsNoShortest silence that is removed, in seconds. Default 0.5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: it discloses that each range is removed on ALL tracks like a sync-locked ripple delete, that material of other clips inside a removed range is destroyed too, that speed-altered/reversed clips are rejected, and that ffmpeg must be available. Those are exactly the side-effect and precondition facts an agent needs before a destructive 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?

Front-loaded with the core action and tightly written; the parenthetical 'map them to timeline time (clip start + source time - clip in point)' earns its place by clarifying what times are reported. It is one dense paragraph rather than structured bullets, which costs a little scannability but wastes no sentences.

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 10-parameter destructive tool with no output schema, the description covers the missing pieces: return values (removed ranges in pre-edit timeline times, seconds_saved, before/after duration), dry_run's return, the ffmpeg dependency, and the refusal cases. Nothing essential for correct invocation is left unstated.

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% and every parameter (clip_id, dry_run, noise_db, min_silence_seconds, padding_seconds, sequence_id/name, track selectors) is already documented there with ranges and defaults. The description restates the selector combinations and mentions dry_run but adds no new syntax or semantics beyond the schema, 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 chain (find silences with ffmpeg, map to timeline time, ripple-delete) applied to a clearly named resource (a clip's source media or one audio track's clips). This is unmistakably distinct from siblings like remove_clips or get_track_gaps, which don't perform silence detection.

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?

Explicitly spells out the three selection modes (clip_id; track_type + track_index + clip_index; track_type + track_index for the whole track) and the refusal condition (clips with non-100% speed or reversed). It also explains dry_run for planning. It doesn't route to an alternative tool for linked/other-track cases, but within its own scope the invocation guidance is unambiguous.

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