Skip to main content
Glama

Generate music

generate_music
Idempotent

A song or an instrumental from a description, as an MP3 of 3 seconds to 10 minutes (30 s default), cleared for commercial use. Costs credits: elevenlabs-music 150 per minute started. Look in the free library first: search_assets with type audio and category music. Music takes about a minute: this 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_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe music: "calm lo-fi piano for a cozy farming game, 80 BPM". Lyrics may be part of it.
secondsNo
max_creditsNo
instrumentalNoNo singing, whatever the prompt says.
wait_secondsNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault
idNo
errorNo
outputNo
statusNo
creditsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing credit pricing (elevenlabs-music 150 per minute started), the async pattern (returns job_id to poll with get_job), the ~45 s blocking wait, and commercial-use clearance. Annotations already say readOnly=false and idempotent=true, so the remaining gap is minor: it does not say what happens on credit exhaustion or timeout.

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?

Dense and front-loaded: capability first, then cost, then the cheaper alternative, then latency and return contract. A couple of clauses are compressed to the point of terseness (e.g. 'this waits about 45 s'), but no sentence is filler.

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?

Covers everything an agent needs for a paid, slow, async generation call: cost, duration bounds, blocking wait, and the handoff to get_job. Since an output schema exists, return-value detail is correctly omitted, and the description still flags the one return field that matters for the async flow.

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?

With only 33% schema coverage, the description compensates meaningfully: it restates the seconds range and default, explains instrumental is 'No singing, whatever the prompt says' context, and clarifies wait_seconds behavior ('waits about 45 s'). However, max_credits and idempotency_key are never given meaning in the description, leaving two of six parameters to inference.

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 resource (a song or instrumental), concrete output format (MP3, 3 s to 10 min, 30 s default), and licensing status (cleared for commercial use). It also separates itself from the sibling search_assets by naming it as the free-library alternative, so an agent can distinguish this from generate_sound_effect or get_asset without opening a schema.

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 routing advice: 'Look in the free library first: search_assets with type audio and category music,' which is a when-not-to-use rule plus the exact alternative call shape. It additionally sets expectations on cost and latency ('about a minute: this waits about 45 s'), so the agent knows when this is the expensive/slow path.

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