Skip to main content
Glama

generate_music

Generate music tracks from text prompts with optional lyrics, configurable duration, and output file paths for local audio production.

Instructions

Generate music using ACE Step.

Args:
    prompt: Music prompts to generate (e.g. "funk, pop, soul, 105 BPM")
    lyrics: Lyrics for the song (default: "[instrumental]")
    duration: Output length in seconds (default: 60.0)
    output_path: Optional output file path. If not provided, a random UUID name will be used.

Returns:
    GenerateMusicResponse with success status and output_path or error.

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
lyricsNo[instrumental]
promptYes
durationNo
output_pathNo

Output Schema

NameRequiredDescriptionDefault
errorNoError message if generation failed
resultYes
output_pathNoPath to the generated audio file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden; it usefully explains that omitting output_path produces a random UUID name and that the response reports success or an error. It does not clarify audio format, overwrite behavior, generation time or cost, resource requirements, or whether processing occurs locally or remotely.

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 front-loads its purpose and uses compact, scannable Args and Returns sections without filler. Each line contributes invocation or outcome information, and the brief Returns note is not excessive even though an output schema is available.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a flat four-parameter tool with defaults and an output schema, this is sufficient for a correct basic call, especially because only prompt is required. It would be more complete with duration constraints, audio format and destination semantics, and overwrite or operational failure behavior, but those are secondary gaps.

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?

Although schema description coverage is 0%, the Args section documents all four inputs: prompt with a concrete example, lyrics with its instrumental default, duration with units and a default, and output_path with its fallback naming behavior. This fully compensates for the schema's missing descriptions and adds invocation-relevant meaning beyond its titles and defaults.

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 opening line, 'Generate music using ACE Step,' gives a specific action, resource, and generation backend. It clearly identifies the tool's purpose, though it provides no differentiation from sibling tools, none of which are listed.

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?

The prompt example and optional lyrics and duration details imply that the tool turns a style prompt, and optionally lyrics, into a song of a chosen length. It does not explicitly state when ACE Step should be preferred, any prerequisites, or situations where another tool or approach should be used.

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