Skip to main content
Glama

Generate one sound effect with ElevenLabs (spends credits)

audio_generate_sound

Generate a sound effect or ambience from a prompt, save the original response and a PCM16 WAV, and inspect the result; requires your own ElevenLabs API key.

Instructions

SPENDS PROVIDER CREDITS. Generate one sound effect or ambience from a prompt using the user's own ELEVENLABS_API_KEY, save the original response and a PCM16 WAV, and inspect the result automatically. Requires that key in the server environment; without it this tool fails and you should tell the user to set their own. Describe source, action, material, distance and timing in the prompt. Generate once, inspect, revise the specific property that failed, then explicitly generate again — never loop. Reusing a requestId returns the saved result instead of charging again.

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

Input Schema

NameRequiredDescriptionDefault
loopNo
promptYes
requestIdYesA UUID you choose. Reusing it returns the saved result instead of generating and charging again.
inspectionNo
durationSecondsNo
promptInfluenceNo

Output Schema

NameRequiredDescriptionDefault
modelYes
wavPathYes
providerYes
replayedYes
requestIdYes
wavSha256Yes
generationYes
inspectionYes
sourcePathYes
generatedAtYes
receiptPathYes
billingUnitsNo
sourceSha256Yes
wavSizeBytesYes
commercialUseYes
sourceSizeBytesYes
providerTermsUrlYes
normalizedRequestYes
providerRequestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the tool spends provider credits, requires ELEVENLABS_API_KEY in the server environment, fails without it, saves the original response and a PCM16 WAV, inspects the result automatically, and that reusing a requestId returns the saved result instead of charging again. These are important behavioral details for a paid, stateful external call.

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?

The description is front-loaded with the critical warning 'SPENDS PROVIDER CREDITS' and packed into a tight paragraph with no filler. It could be more scannable with line breaks, but every sentence contributes useful information.

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 paid generation tool with authentication requirements and a nested inspection object, the description covers cost, key handling, failure behavior, prompt content, and requestId reuse well. The output schema covers return values, but the description still leaves the multi-field inspection parameter unexplained, which is a notable gap given its complexity.

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 only 17%, so the description bears most of the explanatory burden. It adds meaningful prompt guidance ('source, action, material, distance and timing') and reinforces requestId reuse, but the complex inspection object, durationSeconds, promptInfluence, and loop are left undocumented in both schema and description.

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?

The description states a specific verb and resource: 'Generate one sound effect or ambience from a prompt using the user's own ELEVENLABS_API_KEY.' It also distinguishes the operation as a paid generation step, which sets it apart from the asset inspection and download siblings.

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?

The description gives explicit workflow guidance: 'Generate once, inspect, revise the specific property that failed, then explicitly generate again — never loop.' It also clarifies that reusing a requestId avoids recharging. It does not name an alternative sibling to use when generation is not appropriate, but the operational context is clear.

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