Skip to main content
Glama

generate_audio

Create a sound from a text description and place it on an audio track—drum loop, texture, instrument phrase, riser, or effect—using exact bar length at the song tempo.

Instructions

Generate a sound from a description onto an audio track: a drum loop, a texture, an instrument phrase, a riser, an effect. bars = exact length in bars at the song tempo (the tempo goes in the prompt). backend: auto, comfyui (Stable Audio Open, up to 47 s), elevenlabs, replicate.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
barNo
barsNo
nameNo
seedNo
trackNo
promptYes
backendNoauto
projectNo
secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the tempo/length relationship and backend duration limits, but says nothing about what happens to audio already on the target track, whether generation is synchronous or job-based, or whether the result is reversible.

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?

Three tight sentences, front-loaded with the core action and examples before the parameter notes. Every sentence carries information; only the dense backend sentence slightly front-loads jargon ahead of the length semantics.

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

Completeness3/5

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

For a 9-parameter tool with no annotations, no output schema and zero schema coverage, the description answers the essential question of what it produces and roughly how long, but leaves most parameters and the post-call state of the track undocumented.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description must compensate and it only covers prompt, bars and backend. The duplicated 'bar' (default 1) versus 'bars' pair is never disambiguated, and seed, name, track, project and seconds get no explanation at all.

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 ('Generate a sound ... onto an audio track') and enumerates concrete outputs (drum loop, texture, instrument phrase, riser, effect). This clearly separates it from a full-song generator like generate_song, though it never names the sibling explicitly.

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 a clear use context: short generated sounds at a song tempo, with the tempo supplied in the prompt. It also names valid backends with a duration constraint (comfyui up to 47 s). It stops short of exclusions such as 'for full songs use generate_song' or 'to import existing audio use add_audio'.

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