Skip to main content
Glama
That's one sentence; but the instruction is no more than 2 sentences, so 2 is fine. Let me make it two sentences for clarity.

That's one sentence; but the instruction is no more than 2 sentences, so 2 is fine. Let me make it two sentences for clarity.

generate_song

Queues a local vocal song from lyrics and a style prompt, or replays an existing WAV to reuse its settings and seed. Returns a job ID for status checks and WAV retrieval.

Instructions

Queue a local YuE2 song with vocals. Provide original lyrics with section labels and a style description, or replay_from a song WAV in the output folder to reuse its exact settings and seed. duration_seconds sets the cap. The model may end earlier. For caps of 30 seconds or less, suggest a single short chorus and a style prompt requesting the lead vocal on the first beat before submitting. Returns a job_id. Use song_status to check progress and retrieve the WAV. Use cancel_song to stop a waiting or running job.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_song"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoauto = recommends an installed profile using memory estimates and the wait budget; fast = Q4_0; quality = Q8_0.auto
seedNoBase seed for reproducibility; omit or -1 for random.
styleNoGenre, mood, tempo, instruments and vocal character, e.g. 'Japanese vocals, warm city pop, 100 BPM'.
titleNoShort name used for the file name and metadata.
lyricsNoOriginal lyrics in their language, with section tags such as [Verse], [Chorus] and [Bridge].
replay_fromNoPath of a song WAV in the output folder. Replays its saved lyrics, style, seed, profile and ending; other arguments are ignored.
duration_secondsNoMaximum song length in seconds. For 30 seconds or less, use a single short chorus and ask for the lead vocal on the first beat in the style prompt.
wait_budget_secondsNoAuto only: the longest acceptable wait in seconds. Auto skips profiles whose estimate exceeds it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that the job is queued and async, that duration_seconds is a cap the model may undershoot, that replay_from ignores other arguments, and that auto mode uses memory estimates against a wait budget. It does not mention local resource cost, GPU/model loading, or queue depth, which matter for a local inference tool with an unload_models sibling.

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?

Front-loaded with the core action, then the two input paths, then follow-up tools; nearly every sentence earns its place. The 30-second advice is repeated almost verbatim in the duration_seconds schema field, a minor redundancy.

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?

It covers the queued/asynchronous pattern, the job_id return, and the follow-up tools, which is the essential contract for an 8-parameter job-submission tool with no output schema. However, it omits failure behavior, resource/model-loading expectations, and what a caller should do if a job is already queued, leaving gaps for a long-running local generation tool.

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 coverage is 100%, so the baseline is 3, but the text adds meaning beyond the schema: the duration cap with possible early ending, the precedence of replay_from over other arguments, and the pairing of short durations with a single-chorus style prompt. Remaining parameters (mode, seed, title) are left entirely to the schema.

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 and resource ("Queue a local YuE2 song with vocals") and contrasts with the instrumental path through the "with vocals" qualifier. It also clarifies the two operating modes, original lyrics vs. replay_from. Sibling differentiation is implicit rather than naming generate_audio directly.

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?

Gives clear routing: use replay_from to reuse exact settings and seed, use song_status to check progress, use cancel_song to stop a job, and a specific recipe for caps of 30 seconds or less. It never states when NOT to use this tool (e.g., for instrumental output, which a sibling likely covers), so it falls short of a full when/when-not treatment.

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