Skip to main content
Glama

Generate a sound effect or music

generate_sound
Destructive

Make a sound effect or a music bed and return a run id. Poll get_run_status for the audio URL and duration_seconds. Effects run 1-22 seconds, music 10-300 and instrumental by default so it sits under a voiceover. This is the sound half of a video: without it a cut lands silent, and a bed under narration is what makes a montage feel scored rather than assembled.

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_sound"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoShorthand for picking the model: "effect" (default) or "music". Ignored if `model` is set.
modelNoModel id from list_models. Omit and `kind` decides.
promptYesWhat to hear. For an effect, the sound itself — "a heavy wooden door closing on a stone floor". For music, the mood, instrumentation and tempo. Describing the source beats naming a feeling.
secondsNoLength. Effects run 1-22s (default 4); music 10-300s (default 30). Outside the range is rejected, not clamped.
instrumentalNoMusic only. Defaults true so the bed sits under a voiceover; false allows a vocal line.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safety profile (destructive, open-world, non-idempotent); the description adds genuinely new behavior: the call is asynchronous, it returns a run id rather than audio, and the audio URL plus duration_seconds must be fetched via get_run_status. It stops short of disclosing cost or credit implications, which is the main gap for a non-idempotent paid generator.

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?

Front-loaded with the action and the run-id contract, which is right. The closing sentence ('what makes a montage feel scored rather than assembled') is editorial padding that a calling agent does not need, and no practical details (cost, model selection) take its place.

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

Completeness4/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 correctly explains the return path: a run id now, audio URL and duration_seconds later via get_run_status. Enough to call it correctly; only cost and the handoff to list_models for the model parameter are left implicit.

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 rationale the schema lacks — instrumental defaults true specifically so the bed sits under a voiceover, and music is instrumental by default. Duration guidance largely restates the schema ranges, so the gain is real but modest.

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?

States a concrete verb and resource ('Make a sound effect or a music bed') and states the immediate return value ('return a run id'). The effect/music split plus the 'sound half of a video' framing lets an agent tell it apart from generate_speech and generate_video without opening the schema.

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 clear usage context — a video without sound lands silent, and a bed under narration is what scores a montage — and names the mandatory follow-up call (get_run_status). It does not say when to prefer this over generate_speech for voice-adjacent audio, so the exclusion set is incomplete.

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