Skip to main content
Glama

audio_process

Apply ordered audio edits such as gain, normalization, silence trimming, denoising, limiting, fades, EQ, and resampling, then write a new processed file without changing the original.

Instructions

Apply operations in order and write a NEW file (default: _processed. next to the input; the input is never modified unless output==path and overwrite=true; M4A/video inputs default to WAV output). Each operation is an object, e.g. [{"op":"highpass","hz":80}, {"op":"normalize_lufs","lufs":-16}, {"op":"fade_out","seconds":0.5}]. Ops: gain(db) normalize_peak(db=-1, true_peak=false) normalize_rms(db=-20) normalize_lufs(lufs=-16, ceiling_db=-1, limit=false, measure=integrated|momentary_max) trim_silence(threshold_db=-60, pad_ms=10) denoise(reduction_db=12, sensitivity=1, noise_start, noise_end) [verify speech afterwards with audio_transcribe] limit(ceiling_db=-1, release_ms=60, lookahead_ms=5) compress(threshold_db=-18, ratio=3, attack_ms=10, release_ms=120, knee_db=6, makeup_db=0) fade_in/fade_out(seconds, curve=cosine|linear|equal_power) crop(start, end) pad(start, end) highpass/lowpass(hz, order=4) eq(hz, db, q=1) low_shelf/high_shelf(hz, db) remove_dc to_mono to_stereo resample(rate) reverse polarity(channel=None) loop_crossfade(seconds=0.05) mix(path, at=0, gain_db=0) append(path, gap=0). subtype: e.g. PCM_16, PCM_24, FLOAT, PCM_U8 (8-bit) for WAV. Returns before/after levels and any warnings.

Input Schema

NameRequiredDescriptionDefault
pathYes
outputNo
subtypeNo
overwriteNo
operationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only state non-readonly, non-destructive, closed-world. The description adds substantial context on top: input is never modified by default, the one override path (output==path with overwrite=true), default output path naming, and M4A/video inputs defaulting to WAV. It also discloses the return payload (before/after levels and warnings).

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?

The most safety-critical fact (a new file is written; input untouched) is front-loaded before the op catalog. The op listing is long but dense and non-redundant, since there is no structured documentation of the operations array elsewhere; minor tightening is possible but every line informs a caller.

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?

Despite no output schema and 0% schema coverage, the description covers defaults, format conversion, overwrite semantics, the full operation catalog, output subtype values, and the shape of the return value. An agent has everything needed to invoke this five-parameter tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so well: it enumerates every operation name with its parameters and defaults (gain, normalize_*, denoise, fade, crop, resample, etc.), documents the operations object format with an example, explains output defaults, and lists valid subtype values like PCM_16/FLOAT/PCM_U8 for WAV.

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: 'Apply operations in order and write a NEW file', with concrete default naming and format-conversion behavior. It clearly conveys what the tool does, but it never names an alternative sibling (e.g. audio_batch_process for multi-file work), so an agent must infer the single-file vs batch split.

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?

Usage is implied rather than stated: process one file with an ordered op list, and 'verify speech afterwards with audio_transcribe' hints at a follow-up step. There is no explicit when-to-use/when-not guidance or comparison to sibling tools like audio_batch_process or audio_analyze, leaving routing to inference.

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