Skip to main content
Glama

Process Audio

beatra.audio.process
Idempotent

Process one audio file: trim, loop to a length, fade, normalize loudness, convert format, split into stems (vocals and accompaniment, or six stems), or isolate the voice from 4.6 seconds to 5 minutes of audio; optional fade, loudness, and format finishing steps run in the same call. Every operation is a paid task, and trim, loop, fade, loudness, and format are limited to 50 calls a day. A six-stem split costs more than a two-stem one: call beatra.models.list for each price. This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.

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": {
      "operation": "<operation>",
      "source": "<source>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.audio.process"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNotwo_stem (vocals and accompaniment) or multi_stem (vocals, drums, bass, guitar, piano, other).
end_msNoWhere the kept audio ends; send this or target_duration_ms.
formatNomp3, wav, ogg, flac, m4a, or ulaw_8k_wav (8 kHz telephone audio). When omitted: isolate_voice gives wav; trim keeps an uncompressed (PCM) source as wav; otherwise a lossless source becomes flac, MP3 stays mp3, Ogg Vorbis or Opus (WebM included) becomes ogg, AAC becomes m4a, any other codec follows its container's format (WAV stays wav, MP4 becomes m4a), and anything unrecognized becomes mp3.
sourceYesThe track to work on: an artifact from beatra.music.generate, an uploaded file, or a URL.
channelsNo1 for mono or 2 for stereo; keeps the input when omitted.
start_msNoWhere the kept audio starts, in milliseconds (default 0).
operationYestrim, loop, fade, normalize_loudness, convert_format, separate_stems, or isolate_voice.
fade_curveNotri (linear), exp, log, or qsin.
fade_in_msNoFade length in milliseconds (0–30000).
loop_countNoHow many times to repeat the loop window (2–100).
fade_out_msNoFade length in milliseconds (0–30000).
loop_end_msNoThe part of the source to repeat, at least 4 seconds; defaults to the whole file.
sample_rateNoOutput sample rate in Hz. When omitted, the input rate is kept if it is one of these values, otherwise 48000.
bitrate_kbpsNoBitrate for mp3, ogg, and m4a, sent together with format (m4a up to 256; ogg varies around this target). Default when omitted: 192 when format is sent; otherwise the source's bitrate rounded up to one of these values (192 when unknown).
crossfade_msNoCrossfade at each loop seam, 50–3000 milliseconds.
true_peak_dbNoTrue-peak ceiling (−9 to 0 dB, default −1). Sending it also normalizes the loudness to loudness_lufs.
end_with_fadeNoFade out the end of the loop (default true).
loop_start_msNoThe part of the source to repeat, at least 4 seconds; defaults to the whole file.
loudness_lufsNoIntegrated loudness target (−30 to −9 LUFS, default −14). Sending this or true_peak_db normalizes the loudness.
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.
target_duration_msNoLength of the result in milliseconds (trim or loop).

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, open-world, idempotent, non-destructive); the description adds the operationally critical facts an agent cannot infer: every operation is billable and consumes credits, five operation types are capped at 50 calls/day, the call creates an asynchronous task, and a six-stem split is priced above a two-stem one. This is exactly the kind of cost/rate-limit/async disclosure annotations cannot carry.

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-loaded with the operation inventory, then cost/limit, then the submit-and-poll workflow — a sensible order with no filler sentences. The single dense paragraph with semicolon-chained clauses is harder to scan than it needs to be for a definition carrying this much operational policy.

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?

For a 21-parameter billable async tool this covers everything an agent needs before calling: what it does, what it costs, rate limits, pricing lookup, async task lifecycle, and idempotency/retry semantics. Return values are handled by the output schema, so their absence from the description is not a gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the optional fade, loudness, and format steps can be composed into the same call, the two-stem vs six-stem mode distinction is framed as a cost trade-off, and the 4.6-second to 5-minute input window for isolate_voice is stated nowhere in the schema. It stops short of explaining individual parameters like loop_count or crossfade_ms, which the schema already handles.

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?

Opens with a specific verb and resource ('Process one audio file') and enumerates every operation the tool performs: trim, loop, fade, normalize loudness, convert format, split stems, isolate voice. It also distinguishes itself from siblings by naming beatra.models.list for pricing and beatra.tasks.get for polling, so an agent can route correctly without opening any 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?

Explicitly states the workflow ('Submit exactly once, then poll with beatra.tasks.get'), the pricing lookup alternative ('call beatra.models.list for each price'), and the retry rule ('Reuse the same client_request_id only for an identical retry'). Both alternatives come with the condition that selects them, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources