Skip to main content
Glama

audio batch

cli_audio_batch

Batch-process every supported audio file in a directory to inspect and remove compatible AI watermarks, with metadata-only or full processing modes and JSON summaries.

Instructions

Process every supported audio file in a directory.

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": {
      "directory": "<directory>"
    },
    "name": "cli_audio_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoAudio batch processing mode.all
forceNoAlias enabling --allow-unverified, --allow-positive, and --allow-quality-override when --invisible is set.
methodNoSelect automatically, or choose spectral, EnCodec, combined, or full-track BigVGAN, experimental CPU Mimi / CPU FocalCodec, or 44.1 kHz DAC (no SynthID decoder).auto
schemeNoCompatible public models to check; all requests every named model, auto checks installed models.auto
vendorNoKnown source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.auto
verifyNoCheck selected compatible models before and after when --invisible is set.
as_jsonNoEmit the batch summary as JSON.
bandwidthNoEnCodec bandwidth in kbps; applies to encodec and combined methods.24
directoryYesdirectory
invisibleNoOpt into compatible audio-watermark inspection and removal in all mode.
output_dirNoOutput directory (default: <directory>_clean).
keep_standardNoKeep standard metadata.
allow_positiveNoPermit writing an output that still tests positive under local decoders on the final attempt.
vocoder_deviceNoNeural audio inference device for BigVGAN, DAC, EnCodec, and combined; CPU-only profiles require cpu.cpu
allow_unverifiedNoProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
allow_quality_overrideNoPermit writing an output that fails the audio SNR/RMS/window integrity gate on the final attempt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.64.0
    • changedInput schema / properties / method / description
      Previous value: -"Select automatically, or choose spectral, EnCodec, combined, or experimental full-track BigVGAN, CPU Mimi, CPU FocalCodec, or CPU 44.1 kHz DAC (no SynthID decoder)."New value: +"Select automatically, or choose spectral, EnCodec, combined, or full-track BigVGAN, experimental CPU Mimi / CPU FocalCodec, or 44.1 kHz DAC (no SynthID decoder)."
    • changedInput schema / properties / method / enum
      Previous value: -[
      -  "auto",
      -  "spectral",
      -  "encodec",
      -  "combined",
      -  "bigvgan",
      -  "mimi",
      -  "focalcodec",
      -  "dac"
      -]New value: +[
      +  "auto",
      +  "spectral",
      +  "encodec",
      +  "combined",
      +  "bigvgan",
      +  "mimi",
      +  "focalcodec",
      +  "dac",
      +  "snac"
      +]
    • addedInput schema / properties / vendor
      Added value: +{
      +  "default": "auto",
      +  "description": "Known source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.",
      +  "enum": [
      +    "auto",
      +    "google",
      +    "elevenlabs",
      +    "suno",
      +    "udio",
      +    "openai",
      +    "cartesia",
      +    "meta",
      +    "resemble",
      +    "microsoft"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / vocoder_device / description
      Previous value: -"BigVGAN inference device; other methods require the CPU default."New value: +"Neural audio inference device for BigVGAN, DAC, EnCodec, and combined; CPU-only profiles require cpu."
  2. Addedv0.63.0

TDQS

C2.5/5.0
Behavior2/5

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

The only annotation is openWorldHint=false, which is consistent with local directory processing, but the description does not disclose that this tool writes output files, can perform watermark inspection/removal, or has verification and quality-override gates. For a 16-parameter mutation-capable batch tool, the description reveals almost none of the behavior an agent needs to assess risk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no wasted words. That conciseness is undermined by under-specification: one vague sentence is too thin for a complex 16-parameter batch operation.

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

Completeness2/5

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

Given 16 parameters, sparse annotations, and no output schema, the description should explain what processing means, what outputs are produced, and what the safety flags do. It supplies only the directory-level scope, leaving the agent to reconstruct intent from parameter names.

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?

The schema has complete description coverage for all 16 parameters, so the baseline is 3 even though the description adds no parameter meaning. The description does not explain modes, methods, schemes, or safety flags beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a batch scope and resource: every supported audio file in a directory. However, "Process" is vague and does not clarify how this differs from siblings such as cli_audio_all, cli_audio_metadata, cli_audio_invisible, or cli_batch.

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

Usage Guidelines2/5

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

There is no guidance on when to use this batch tool versus single-file audio tools or other batch tools. It also gives no exclusions or prerequisites, leaving the agent to infer usage from the tool name alone.

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