Skip to main content
Glama

Generate Music

generate_music

Generate a music track (modelId from list_models kind "music", e.g. elevenlabs-music; durationSec 5–300; prompt 3–2000 chars; optional instrumental, lyrics). Waits up to ~90 s and returns { trackId, audioUrl, costCents, billingMode } when ready. If audioUrl is empty the track is still rendering: poll get_job with jobId = trackId every ~15 s until it succeeds or fails (gives up at 30 min). Scope required: generate:music.

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": {
      "modelId": "<modelId>",
      "prompt": "<prompt>",
      "durationSec": "<durationSec>"
    },
    "name": "generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoGenre/mood tags. Suno uses them as the style; fal models (e.g. lyria-2) add them to the prompt; ElevenLabs ignores them.
lyricsNoCustom lyrics for Suno models; tags (or else the prompt) then set the style. Ignored by other models.
promptYesWhat the track should sound like (3–2000 characters).
modelIdYesMusic model id from list_models (kind music), e.g. elevenlabs-music. Other kinds are refused.
durationSecYesTrack length in seconds (5–300); must not exceed the model's maxDurationSec in list_models.
instrumentalNoNo vocals. Honoured by ElevenLabs and Suno models; ignored by fal models.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / durationSec / description
      Added value: +"Track length in seconds (5–300); must not exceed the model's maxDurationSec in list_models."
    • addedInput schema / properties / instrumental
      Added value: +{
      +  "description": "No vocals. Honoured by ElevenLabs and Suno models; ignored by fal models.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / lyrics
      Added value: +{
      +  "description": "Custom lyrics for Suno models; tags (or else the prompt) then set the style. Ignored by other models.",
      +  "type": "string"
      +}
    • addedInput schema / properties / modelId / description
      Added value: +"Music model id from list_models (kind music), e.g. elevenlabs-music. Other kinds are refused."
    • addedInput schema / properties / prompt / description
      Added value: +"What the track should sound like (3–2000 characters)."
    • addedInput schema / properties / tags / description
      Added value: +"Genre/mood tags. Suno uses them as the style; fal models (e.g. lyria-2) add them to the prompt; ElevenLabs ignores them."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare non-read-only, open-world, non-destructive; the description adds the operationally critical facts: the call blocks up to ~90 s, the exact response shape { trackId, audioUrl, costCents, billingMode }, the asynchronous fallback path, the 30-minute give-up point, and the required generate:music scope. This is exactly the extra context the sparse annotations leave out.

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 with the core action and highly information-dense, with no filler sentences. The heavy parenthetical stacking in the first sentence makes it slightly harder to scan, but every clause carries operational value.

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?

For a 6-parameter generative tool with no output schema, the definition still specifies the return fields, the blocking behavior, the async completion procedure, the cost signal (costCents/billingMode), and the auth scope. An agent has everything needed to invoke it and recover from an incomplete result.

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 description coverage is already 100%, and the description's parameter content (duration range, prompt length, optional instrumental/lyrics) largely restates it. The one genuinely additive note is model-dependent behavior of tags/lyrics/instrumental, which the schema also covers per parameter, so the description adds little beyond the baseline.

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?

Opens with a specific verb+resource ("Generate a music track") and immediately scopes it with the model source (modelId from list_models kind "music") and hard limits (durationSec 5–300, prompt 3–2000 chars). This clearly separates it from siblings like generate_voice, generate_image, and generate_video.

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 list_models to obtain a valid modelId and to get_job when the returned audioUrl is empty, including the exact poll interval (~15 s) and the failure horizon (30 min). It also states the when-not condition — "Other kinds are refused" — so misuse is preventable from the definition alone.

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.