Skip to main content
Glama

analyze_silence

Detect silence regions in media files and return segment timecodes plus total silence so you can plan a silence-removed rough cut.

Instructions

Detect silence regions in a media file using ffmpeg silencedetect. Returns segment timecodes in source seconds plus total silence — the raw material for a silence-removed rough cut.

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": {
      "mediaPath": "<mediaPath>"
    },
    "name": "analyze_silence"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiseNoSilence threshold, e.g. -30dB (raise for loud rooms: -25dB)-30dB
mediaPathYes
minDurationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does disclose useful behavior: the ffmpeg silencedetect backend, and that results are segment timecodes in source seconds plus a total. It does not state that the source media is untouched (read-only), nor anything about cost on long files or behavior when no silence is found.

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, zero waste. The purpose is front-loaded and the second sentence covers output shape and downstream use. Nothing is repeated from the schema or padded with filler.

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?

For a three-parameter analysis tool with no annotations and no output schema, the description does the important work of explaining the return value (segment timecodes in source seconds plus total silence), which compensates for the missing output schema. It remains incomplete on parameter behavior (minDuration) and on any operational constraints such as supported media formats or path expectations.

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?

Schema description coverage is only 33% — just the noise threshold is documented, with an example and a tuning hint. The description adds no parameter meaning at all; it never mentions mediaPath or minDuration, leaving the 0.05–30 second window and its default of 0.5 entirely unexplained. With low coverage the description should compensate, and it does not.

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: 'Detect silence regions in a media file using ffmpeg silencedetect.' An agent immediately knows this is an analysis/extraction operation rather than an edit. It stops short of explicitly distinguishing itself from the sibling remove_silences, only hinting at the relationship via 'raw material for a silence-removed rough cut.'

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

Usage Guidelines3/5

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

The phrase 'the raw material for a silence-removed rough cut' implies this is the analysis step preceding removal, which is useful context. However, it never says explicitly when to call this versus remove_silences, nor does it state any exclusions or prerequisites (e.g., must the file be local, must ffmpeg be available — check_fcp_available exists as a sibling).

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