Skip to main content
Glama

Start a song

generate_music

Start music generation with a Kunavo audio model; the request charges your balance and returns a task ID to follow with get_task.

Instructions

Start generating music with a Kunavo music model (endpoint audio_music in list_models). Spends the balance: one request is charged (its listed price is in list_models) and makes two tracks. What was charged is what get_usage reports. A song takes one to three minutes, so this returns a task id; follow it with get_task. Starting it twice makes and charges two requests, unless the second call carries the first one's idempotency_key.

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesA model id from list_models with endpoint audio_music.
styleNoStyle or genre, e.g. "lofi, jazz, chill".
titleNoTrack title.
promptYesA description of the track. With custom_mode it is the lyrics instead, and the arrangement comes from style.
custom_modeNoTreat prompt as lyrics and take the arrangement from style.
instrumentalNoNo vocals.
wait_secondsNoHow long to wait for the result before returning, in seconds (0 to 45, default 0). An unfinished task is returned with its id.
idempotency_keyNoAny string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for one request for as long as the API keeps its task: the API refuses it for a request on another tool, for another model or with other arguments, so use a new one for each new request. When left out, one is made and given back in the answer.

Output Schema

NameRequiredDescriptionDefault
idYesTask id: img_… (image), vid_… (video) or msc_… (music).
kindYes
urlsYesResult files once completed: the images, the video, or the audio of each track.
errorYes
modelYes
statusYesqueued, in_progress, completed or failed. Anything else is a task that is not finished.
tracksNoMusic only: one entry for each track.
stalledYestrue when the task has gone longer than expected without finishing.
archivedYestrue: every URL in `urls` is Kunavo's own copy and does not expire. false: a file could not be archived and its URL is the model provider's temporary one. null until completed.
next_stepYesWhat to do with this result.
created_atYes
resolutionNoVideo only.
completed_atYes
pollable_untilYesThe task can be read with get_task at least until then.
idempotency_keyNoThe key this task was started under, in the answer of the tool that started it (get_task does not know it). Calling that tool again with it and the same arguments returns this task.
duration_secondsNoVideo only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false and openWorldHint=true; the description goes well beyond them by disclosing the billing model (one request charged per call, two tracks produced), the 1-3 minute latency, the async task-id return contract, and the double-charge risk. The idempotentHint=false annotation is consistent with the stated 'starting it twice makes and charges two requests' behaviour, so nothing is contradicted.

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?

Four dense sentences, none wasted: purpose first, then cost, then latency/return contract, then the idempotency caveat. The front-loading means an agent can decide to call it after the first clause.

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 an 8-parameter async generation tool with a full output schema, the description covers everything the schema does not: cost, tracks produced, duration, task-id handoff to get_task, and idempotency economics. No material gap remains for correct invocation.

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 already 100%, so the baseline is 3; the description still adds cross-tool meaning by tying the model parameter to list_models' audio_music endpoint and the price list, and by restating the idempotency_key contract. It does not, however, add anything about style, title, custom_mode or instrumental beyond the schema text.

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 names a specific verb and resource ('Start generating music') and pins it to a model class ('a Kunavo music model, endpoint audio_music in list_models'), which separates it from generate_image and generate_video without needing their schemas. An agent knows exactly what this tool initiates.

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?

It gives explicit routing: call this to start, then 'follow it with get_task', and consult get_usage for what was charged and list_models for price. It also states the when-not condition — starting twice charges twice 'unless the second call carries the first one's idempotency_key' — so the alternative path is spelled out.

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