Skip to main content
Glama

Generate sound variations

vary_sound

Generate a set of variations of one sound, free: the same sound played differently each time, so a game or a video never repeats one file (a cartoon character's footsteps, sword swings, punches, impacts, grunts, gunshots, UI clicks). Each variation is its own WAV, lined up with the original's attack and matched to its length, tone and loudness: lay them along a video timeline, or put them in a game's random container (Godot AudioStreamRandomizer, FMOD or Wwise, Unity) next to the original. The simplest call is just sound_id: the id (or slug) of a sound from search_sounds, get_sound or download_sound. To vary a sound you made with generate_sound, send take_id instead: the id of one of its takes. One-shots up to 10 seconds; not ambiences. Optional: spread, how different the variations are: "subtle" (2: same recording, a little alive; UI clicks, coins, gunshots), "natural" (5, the default: the same thing done again; footsteps, impacts, swings) or "bold" (8: a different performance; one grunt per character), or 1 to 10. takes: how many, 1 to 8, default 6. Waits for them (usually 5–10 seconds, up to about 30 for a long sound) and returns takes, each with a url (WAV), preview_url (MP3), file_name (-var-01.wav, -var-02.wav…) and a ready curl command: save them all. If the status is still "running", call get_generation with the id. Links work for 120 days. Each variation counts as one generation (250 a week per account, one job at a time), so ask for the number you'll use. They're AI-generated (ai_content "ai"); tell the person.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vary_sound"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoAny whole number. Send the same seed with the same sound and settings to get the same variations back; leave it out to get new ones each time.
takesNoHow many variations, best first: 1 to 8. Default 6. Each one counts as a generation.
promptNoWhat the sound is, if its title doesn't say. Usually leave out.
spreadNoHow different the variations are: "subtle" (2), "natural" (5), "bold" (8), or 1 to 10. Default "natural" (5).
take_idNoTo vary a sound you made with generate_sound: the id of one of its takes. Send this or sound_id.
sound_idNoThe sound to vary: the id (or slug) that search_sounds, get_sound and download_sound return for it. Send this or take_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations (non-readonly, non-idempotent), disclosing that the call blocks 5–10s and up to ~30s, what happens on a 'running' status (call get_generation), link lifetime of 120 days, the quota cost (each variation = one generation, 250/week, one job at a time), and the AI-content disclosure obligation. This is exactly the operational context annotations cannot convey.

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 purpose and the simplest call, then optional tuning, then return/limits — a sensible order. It is dense but somewhat long, and repeats some schema content (spread enum meanings, takes default of 6), which is minor redundancy.

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 fully carries the return contract: takes with url (WAV), preview_url (MP3), file_name pattern, and a ready curl command, plus the asynchronous fallback. Combined with duration limits and quota, an agent has everything needed to call it and handle the response.

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 baseline is 3, but the description adds meaning beyond it: it frames sound_id vs take_id as a mutually exclusive choice tied to how the sound was created, and explains spread in workflow terms ('subtle' for UI clicks/coins, 'natural' for footsteps, 'bold' for one grunt per character) rather than just restating values.

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?

Specific verb+resource: 'Generate a set of variations of one sound,' immediately scoped ('free,' 'same sound played differently each time') with concrete use cases (footsteps, sword swings, UI clicks). It explicitly distinguishes itself from generate_sound by explaining that sounds made with generate_sound are varied via take_id instead of sound_id.

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?

Gives explicit when-to-use (lay along a video timeline, put in a random container in Godot/FMOD/Wwise/Unity) and an explicit when-not ('One-shots up to 10 seconds; not ambiences'). It also routes the agent to the right source tools (search_sounds, get_sound, download_sound) for obtaining the id, and states the condition that switches to take_id.

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.