Skip to main content
Glama

Generate a silence file

generate_silence_file

Create a 16-bit WAV file of digital silence at a set duration, sample rate and channel count. Use it for gaps, spacers between audio clips, or placeholder tracks on disk.

Instructions

Create a 16-bit WAV file of digital silence of a given length: room for a gap, a spacer between audio clips, or a placeholder track. Returns the new file's duration, sample rate and channels. To leave a gap in a sequence use insert_gap instead. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

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": {
      "output_path": "<output_path>"
    },
    "name": "generate_silence_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelsNo1 = mono, 2 = stereo. Default 2.
durationNoLength in seconds. Default 5.
overwriteNoReplace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS.
output_pathYesAbsolute path of the WAV file to write (.wav only).
sample_rateNoSample rate in Hz. Default 48000.
timeout_secondsNoStop ffmpeg and fail with TIMEOUT after this many seconds. Default 300.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare the safety profile (non-destructive, not idempotent, closed-world), and the description adds real context beyond that: the fixed 16-bit encoding, the ffmpeg/ffprobe dependency with a pointer to check_ffmpeg, and the specific FFMPEG_NOT_FOUND failure mode. The only omission is overwrite/FILE_EXISTS behavior, which the schema already documents.

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?

Three sentences, front-loaded with the core action, followed by the sibling exclusion and the environment prerequisite. Nothing is repeated from the schema and every sentence carries information an agent needs.

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?

There is no output schema, and the description compensates by naming the returned fields (duration, sample rate, channels). Combined with the dependency and error-code notes, an agent has everything needed to call this correctly for a six-parameter file-generation tool.

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%, so all six parameters are already documented, and the description adds little parameter-level meaning beyond 'of a given length.' It does note that bit depth is fixed at 16-bit rather than configurable, which is a small useful clarification not in the schema.

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 and resource — 'Create a 16-bit WAV file of digital silence of a given length' — plus the concrete use cases (gap, spacer, placeholder track). It also names the sibling it is not, insert_gap, so an agent can distinguish it without opening either schema.

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?

Explicit routing guidance: 'To leave a gap in a sequence use insert_gap instead,' and a clear scope statement that this operates on a file on disk, not the timeline, so Premiere Pro is not needed. Both the when-to-use and the when-to-use-something-else conditions are stated.

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