Skip to main content
Glama

Generate a tone file

generate_tone_file

Create a 24-bit WAV sine tone with chosen frequency, duration, channels and peak level for reference leaders, bleeps, or test audio; returns file specs and writes via ffmpeg on disk.

Instructions

Create a 24-bit WAV file with a sine tone of a given frequency, length and peak level: reference tone for leaders, a bleep to cover a word, or test audio. Returns the new file's duration, sample rate, channels, frequency and level_db. 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_tone_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelsNo1 = mono, 2 = stereo (same tone on both). Default 2.
durationNoLength in seconds. Default 5.
level_dbNoPeak level in dBFS. Default -18.
frequencyNoTone frequency in Hz. Default 1000.
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.4/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say it is a non-readonly, non-destructive, non-idempotent write. The description discloses the exact return fields (duration, sample rate, channels, frequency, level_db), the ffmpeg/ffprobe prerequisite with a pointer to check_ffmpeg, and the failure codes FFMPEG_NOT_FOUND, FILE_EXISTS and TIMEOUT, all consistent with the declared annotations.

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-loads the verb and output format, then moves through purpose, scope boundary, return shape and prerequisites in a tight sequence with no filler. Slightly dense as a single block, but every sentence carries information.

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?

With no output schema, the description supplies the return fields, and it covers the external dependency, error modes and on-disk vs timeline scope. Nothing an agent needs in order to call this 8-parameter tool correctly is missing.

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 every one of the 8 parameters is already documented with defaults and ranges. The description only reinforces frequency, length and peak level and adds the 24-bit bit depth that the schema omits, so the baseline of 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 and resource ('Create a 24-bit WAV file with a sine tone') plus the controllable dimensions (frequency, length, peak level), which separates it from generate_silence_file, generate_color_matte_file and create_bars_and_tone without naming them.

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 concrete use cases (reference tone for leaders, bleep to cover a word, test audio) and an explicit boundary: it works on disk via ffmpeg, not on the timeline, and Premiere Pro is not required. It does not explicitly name the sibling generators (silence, bars and tone) as alternatives, so the routing is clear but not exhaustive.

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