Skip to main content
Glama

music_generation

Generate custom music tracks using AI models by providing prompts and lyrics. Create songs tailored to specific styles, moods, or scenes. Save output in various formats and sample rates for diverse use cases.

Instructions

Create a music generation task using AI models. Generate music from prompt and lyrics.

Note: This tool calls MiniMax API and may incur costs. Use only when explicitly requested by the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bitrateNoBitrate of generated music. Values: [32000, 64000, 128000, 256000]
formatNoFormat of generated music. Values: ["mp3", "wav", "pcm"]mp3
lyricsYesSong lyrics for music generation. Use newline (\n) to separate each line of lyrics. Supports lyric structure tags [Intro][Verse][Chorus][Bridge][Outro] to enhance musicality. Character range: [10, 600] (each Chinese character, punctuation, and letter counts as 1 character)
outputDirectoryNoThe directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`
promptYesMusic creation inspiration describing style, mood, scene, etc. Example: "Pop music, sad, suitable for rainy nights". Character range: [10, 300]
sampleRateNoSample rate of generated music. Values: [16000, 24000, 32000, 44100]
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds valuable context about API costs and user request requirements, which are behavioral traits. However, it doesn't describe what the tool returns (file path? success status?), error conditions, or processing time expectations, leaving gaps for a mutation tool.

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?

The description is perfectly concise with three sentences that each earn their place: purpose statement, API cost warning, and usage restriction. No wasted words, and the most important guidance ('Use only when explicitly requested') is appropriately positioned.

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 6-parameter mutation tool with no annotations and no output schema, the description provides good usage guidance but lacks information about return values, error handling, or what constitutes successful completion. The cost warning and user request requirement help, but more behavioral context would be needed for full completeness.

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 100%, so the schema already documents all 6 parameters thoroughly. The description mentions 'prompt and lyrics' which aligns with the two required parameters, but adds no additional semantic context beyond what's in the schema descriptions. Baseline 3 is appropriate when schema does the heavy lifting.

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?

The description clearly states the tool's purpose: 'Create a music generation task using AI models. Generate music from prompt and lyrics.' This specifies the verb (create/generate), resource (music), and inputs (prompt and lyrics). However, it doesn't differentiate from sibling tools like 'text_to_audio' or 'voice_design' that might also generate audio content.

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 description provides explicit usage guidelines: 'Use only when explicitly requested by the user.' This clearly defines when to use the tool. The note about API costs ('may incur costs') also provides important context about when to be cautious with usage.

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

Related 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/MiniMax-AI/MiniMax-MCP-JS'

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