Skip to main content
Glama

Generate a sound effect

generate_sound_effect
Idempotent

A sound effect from a description, as an MP3 of 0.5 to 30 seconds; loop true makes one that loops without a seam (ambience, engines, hums). Costs credits: elevenlabs-sfx 1 per 2 seconds; without seconds the model picks the length, the job is held at 30 s and charged for what came back. Look in the free library first: search_assets with type audio. Waits about 45 s, then returns job_id for get_job.

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

Input Schema

NameRequiredDescriptionDefault
loopNo
promptYesThe sound, up to 450 characters: "heavy wooden door creaking open, then slamming shut".
secondsNo
max_creditsNo
wait_secondsNo
idempotency_keyNo
prompt_influenceNoHow closely it keeps to the words (0.3 default).

Output Schema

NameRequiredDescriptionDefault
idNo
errorNo
outputNo
statusNo
creditsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: the credit pricing model, what happens when seconds is omitted (model picks length, job held at 30 s, charged for actual output), and the ~45 s synchronous wait before a job_id is returned. This is strong for an openWorld, non-destructive async tool, though permissions/async cancellation are not covered.

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 and dense with no filler sentence, but the semicolon-chained clauses about pricing and hold time are compact to the point of being hard to parse on first read.

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?

Covers the essentials for a paid async generation tool: cost, timing, return value (job_id), and the next step. Residual gaps are the undocumented credit-cap and idempotency parameters.

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

Parameters3/5

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

Schema coverage is low (29%), and the description compensates for loop ('loops without a seam') and seconds (model picks length if omitted), but leaves max_credits, wait_seconds, idempotency_key, and prompt_influence unexplained. Partial compensation warrants a middle score.

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 specific verb and resource ('A sound effect from a description, as an MP3 of 0.5 to 30 seconds') plus the loop variant. The agent can distinguish it from generate_music and generate_speech from the text alone.

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 routes the agent to a cheaper alternative first ('Look in the free library first: search_assets with type audio') and names the follow-up tool (get_job). The condition that selects the alternative is stated, not implied.

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