Skip to main content
Glama

ai_remove_silence

Removes silent gaps from dialogue timeline items by detecting silence with FFmpeg and replacing the clip and linked audio with kept ranges back-to-back. Preview the cut list with apply set to false.

Instructions

Remove silent gaps from a timeline item (dialogue): FFmpeg finds silences in the source range, the item (and its linked audio) is replaced by the kept ranges placed back-to-back. Run with apply: false first to review the cut list.

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

Input Schema

NameRequiredDescriptionDefault
applyNo
itemIdNoTimeline item unique id (from timeline_get_clips)
padSecNo
confirmNoRequired (true) with apply: true, after the user reviewed the cut list
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNovideo
trackIndexNo
thresholdDbNo
minSilenceSecNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Adds meaningful behavior beyond the annotations: it discloses that linked audio is affected too and that the edit is a replacement of the range rather than a mute. However, it says nothing about reversibility/undo, whether the tool reports what it cut, or failure behavior when no silence meets the threshold — important for a mutating edit whose annotations only say readOnly=false and destructiveHint=false.

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 sentences, both front-loaded and dense with unique information: first what happens to the media, then the safety workflow. No filler or restatement of the name.

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

Completeness3/5

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

An output schema exists so return values need not be described, and the dry-run/confirm workflow is covered. For a 10-parameter mutating tool, though, the silence-detection parameters that control the actual cut are unexplained in both schema and description, leaving a real gap.

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

Parameters2/5

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

With 10 parameters and only 40% schema description coverage, the description should carry meaning for the undocumented ones. It mentions apply only implicitly through the dry-run advice and never explains thresholdDb, minSilenceSec, or padSec — the three knobs that actually determine what counts as a silence to cut — nor itemIndex/trackType/itemId selection.

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?

States a specific verb and resource — remove silent gaps from a timeline item — and goes further by naming the mechanism (FFmpeg silence detection) and the resulting edit (item and linked audio replaced by kept ranges back-to-back). It does not explicitly contrast itself with nearby tools such as audio_dialogue_cleanup or audio_analyze, so sibling differentiation is left implicit.

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?

Gives a concrete operating procedure: run with apply: false first to review the cut list, which pairs with the schema's confirm requirement for a two-step dry-run workflow. It does not say when this tool is the wrong choice or how it relates to other audio-repair tools, so exclusions are absent.

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