Skip to main content
Glama

generate_music

Generate background tracks, jingles, or full songs from text prompts, including optional lyrics, timestamps, duration, WAV output, and reference images to inspire the music.

Instructions

Generate music with Lyria (background tracks, jingles, full songs). Lyrics follow the prompt language.

prompt: genre, tempo, instruments, mood; say "instrumental" for no vocals. lyria-3.5 accepts [verse]/[chorus] tags and timestamps for custom lyrics and structure. model: lyria-3-clip-preview (30 s) or lyria-3.5 (full song). If unavailable (404) the next fallback is tried automatically; the model used is reported. duration_seconds: target length (lyria-3.5 only). wav: WAV instead of MP3 (lyria-3.5 only). reference_images: up to 10 images to inspire the 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": {
      "prompt": "<prompt>"
    },
    "name": "generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
wavNo
modelNo
promptYes
filenameNo
force_newNo
duration_secondsNo
reference_imagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does add real value: it discloses automatic fallback on a 404 and that the model used is reported, plus constraints tying wav and duration_seconds to lyria-3.5. It omits cost/latency expectations, what artifact is returned (file path vs URL), and the overwrite behavior implied by force_new.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose, then a parameter-keyed list where each line earns its place by adding a constraint or example. No redundant restating of the tool name or padding.

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 7-parameter generative tool with no annotations and no output schema, the description covers most of what is needed to call it, including fallback behavior. Gaps remain around the two undocumented parameters and the shape of the result the agent should expect back.

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 description coverage is 0%, so the description must compensate, and it does for five of seven parameters: prompt content guidelines, concrete model identifiers with their durations, duration target, WAV toggle, and the 10-image cap on reference_images. It leaves filename and the potentially consequential force_new completely undefined, which keeps it short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Generate music with Lyria') and enumerates concrete outputs (background tracks, jingles, full songs). It is clearly distinguishable from sibling generate_image/generate_video by modality, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage guidance is embedded per-parameter rather than stated as when-to-use rules: say 'instrumental' for no vocals, use lyria-3.5 for custom structure, wav/duration only apply to lyria-3.5. There is no explicit statement of when to prefer this over generate_video or text_to_speech, nor any when-not guidance.

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