Skip to main content
Glama

Generate a sound effect

generate_sound_effect

Create a NEW short sound effect (up to 4 s) from a description and return a WAV file URL with its duration. Not music and not voice. Check list_sound_effects first: it has 75 ready-made effects (whooshes, clicks, pops, impacts, cash register, applause…) that cost nothing. This one spends 15 AI credits per sound, so download it and reuse it instead of asking for the same one twice. SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.

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": {
      "description": "<description>"
    },
    "name": "generate_sound_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNotrue ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged.
descriptionYesThe sound in a few words (3-160 characters), e.g. "quick whoosh transition" or "soft notification pop".
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Output Schema

NameRequiredDescriptionDefault
urlNoPublic URL of the WAV file. It expires after 7 days: download it into the project.
mediaTypeNo
durationSecNoExact length of the audio, in seconds.
confirmTokenNo
creditsChargedNo
creditsRemainingNoCredits left this month. null = this organization has no monthly credit cap.
estimatedCreditsNo
needsConfirmationNotrue = this is only the quote: nothing was done or charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / confirmToken
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / estimatedCredits
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / needsConfirmation
      Added value: +{
      +  "description": "true = this is only the quote: nothing was done or charged.",
      +  "type": "boolean"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "url",
      -  "durationSec"
      -]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond readOnlyHint=false/openWorldHint=true, the description discloses cost (15 AI credits per sound), the dry-run quote behavior with no charge, and what a single yes authorizes versus what needs a fresh approval. The only unstated behavior is failure/timeout handling, which the idempotencyKey schema covers rather than the description.

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?

Capability, exclusions, cost, and the confirm workflow are front-loaded in that order with no filler. The final sentence about the scope of one approval is long and slightly convoluted, but it prevents a costly misread, so it earns its space.

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?

The tool has an output schema, so return shape needn't be explained, yet the description still names the WAV URL and duration. With cost, credit-burning gate, exclusions, and a sibling alternative all covered, an agent has everything needed to call it correctly.

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; the description still adds real meaning by specifying that confirm must be passed with the same arguments as the quoted call and why (nothing runs or charges without it), which is operational semantics the schema only hints at.

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?

"Create a NEW short sound effect (up to 4 s) from a description" gives a specific verb, resource, and constraint, and then excludes adjacent siblings with "Not music and not voice," pointing to generate_image/generate_video/generate_voiceover territory without needing their schemas.

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?

Explicit routing: check list_sound_effects first because it has 75 free ready-made effects, and reuse a generated sound rather than regenerating it. It also states the exact call sequence (no confirm first, then confirm: true) and the scope of a single user approval, so an agent knows both when to use and when to stop.

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