Skip to main content
Glama

Google Lyria 3 Instrumental Music & Audio Stem Composer

compose_lyria_music_track
Read-onlyIdempotent

Generates instrumental music tracks, ambient loops, and multi-instrument arrangements from genre, tempo, and mood prompts for scores, stems, and rhythmic audio.

Instructions

Composes studio-grade instrumental music tracks, ambient loops, and multi-instrument arrangements from genre, tempo, and mood prompts using Google Lyria 3. Use when generating musical scores, soundtrack stems, or rhythmic audio loops; for converting written text into spoken human voice narration (TTS), use synthesize_gemini_speech_audio instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'prompt' ('genre_preset' defaults to 'cinematic_synth'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid.

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": "compose_lyria_music_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesMusical style, instrumentation, BPM tempo, and harmonic mood description.
genre_presetNoPrimary acoustic or electronic genre; defaults to 'cinematic_synth' when omitted.

Output Schema

NameRequiredDescriptionDefault
modelYesMusic generation model executed ('lyria-3-clip').
noticeYesComposition completion notice.
outputYesGenerated audio track payload and arrangement metadata.
successYesTrue when Lyria 3 audio synthesis succeeded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.3

TDQS

A4.6/5.0
Behavior5/5

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

Beyond standard hints, the description provides critical operational behavior not found in schema or annotations, such as the stateless nature, specific size/rate limits (max 32 KB, 60 RPM), and defined error behavior (returns HTTP 400 if invalid).

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 dense and front-loaded, packing both functional and operational data into one paragraph. While highly effective, the sheer volume of technical jargon (KB, RPM, Lyria 3) prevents a perfect 5, though the information is logically ordered.

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?

Given the complexity of the tool (music generation, specific edge constraints, and failure modes), the description is exhaustively complete, leaving no critical question unanswered for an agent attempting to use it correctly.

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?

With schema coverage at 100%, the description meets the baseline for supplemental documentation. It successfully reinforces the default value for the `genre_preset` parameter but does not add semantic value that wasn't already structured.

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 is highly specific, naming the output (musical tracks, ambient loops), the mechanism (Google Lyria 3), and the inputs it transforms (genre, tempo, mood prompts). It clearly defines what the tool's specific domain is.

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?

The tool provides explicit 'when to use' scenarios (musical scores, audio loops) and a direct 'when not to use' instruction by pointing to `synthesize_gemini_speech_audio` as the alternative for TTS tasks.

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

Deploy Server

Other Tools