Skip to main content
Glama
mnthe
by mnthe

generate_music

Generates music clips or full songs from text prompts and optional images, with control over tempo, lyrics, vocal style, and duration.

Instructions

Generate music using Lyria models. Supports lyria-3-clip-preview fixed 30-second clips and lyria-3-pro-preview full songs up to 184 seconds. Lyria 3 supports one clip per prompt; language directions follow the model-card set: English, German, Spanish, French, Hindi, Japanese, Korean, Portuguese. Gemini API/AI Studio mode supports 44.1 kHz stereo audio/mp3 output, and audio/wav only for lyria-3-pro-preview. Negative prompting is not supported. Lyria 3 accepts text prompts and optional imagePaths (PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp), HEIC (.heic), HEIF (.heif)); audio/video reference files are not accepted. Audio is saved to /root/Music/gemini-generated/music and returned as MCP audio content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bpmNoOptional tempo direction in beats per minute
modelNoMusic model (default: lyria-3-clip-preview)
lyricsNoOptional user-provided lyrics to include in the Lyria prompt
promptYesMusic generation prompt
languageNoOptional output language direction. Supported Lyria 3 languages: English, German, Spanish, French, Hindi, Japanese, Korean, Portuguese
intensityNoOptional musical intensity direction
imagePathsNoOptional local image paths to use as multimodal music generation inputs (max 10). Supported Gemini image input file types: PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp), HEIC (.heic), HEIF (.heif). Audio/video reference files are not accepted by Lyria 3.
vocalStyleNoOptional vocal generation direction, such as vocal tone, language, or delivery style
instrumentalNoExplicitly request instrumental-only output
outputMimeTypeNoOptional output MIME type; Gemini API/AI Studio defaults to audio/mp3 and supports audio/wav only with lyria-3-pro-preview
durationSecondsNoOptional target duration in seconds; requires lyria-3-pro-preview; maximum 184 seconds. lyria-3-clip-preview is fixed at 30 seconds
Behavior5/5

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

No annotations, so description must fully disclose behavior. It covers clip duration, generation limits, language support, output MIME types, image input formats, output path, and return type as MCP audio content. Very transparent.

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?

Description is dense but efficient; every sentence adds value. Could be slightly more structured (e.g., separate paragraphs for models, inputs, outputs), but not overly long.

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 complex tool with 11 parameters and no output schema, the description covers all key aspects: model variants, duration limits, languages, input types, output path, and return type. No missing critical information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage, yet description adds significant value: explains fixed 30s for clip vs pro, audio specifications (44.1 kHz, stereo), and limitations (no negative prompting, audio/video refs not accepted). Enhances schema meaning.

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?

Clearly states 'Generate music using Lyria models' – a specific verb+resource. Distinguishes from siblings like generate_image, generate_speech, etc., which are for different modalities.

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?

Provides detailed guidance on model selection (clip vs pro), language directions, output formats, and limitations (no negative prompting, no audio/video references). Does not explicitly state when not to use, but covers context well.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnthe/gemini-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server