Skip to main content
Glama

Regenerate a section, extend or make a similar track

derive_music

Makes a NEW version of a track from an existing version (spends credits: refused until the user approved the cost, see approve_spending). origin=repaint regenerates only the section [start, end] seconds (at least 3 s) and keeps the rest; origin=extend adds seconds of new music after the end, in the same mood (the final length must fit the user's plan); origin=cover makes a similar track from this one (closeness: close, medium or loose). note says what should change and is added to the end of the source prompt as written, so write it in English tags. Lyrics, tempo and key come from the source version. Charges the generated seconds (the section, the tail; cover charges the whole track) at the version's quality level. Same response as generate_music.

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": {
      "version_id": "<version_id>",
      "origin": "<origin>"
    },
    "name": "derive_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNorepaint: end of the section, in seconds (at least 3 s after start).
noteNoWhat should change, added to the source prompt as is (English tags).
waitNofalse = only queues it and returns the jobId for job_status (see generate_music).
startNorepaint: start of the section, in seconds.
originYesrepaint: regenerates only the section from start to end; extend: adds `seconds` of music after the end; cover: makes a similar track.
qualityNoQuality level; omitted: the track's current level.
secondsNoextend: how many seconds to add (3 to 90; more, in steps). The final length must fit the plan: up to 4 min for this account.
closenessNocover: how close to the source (default medium).
version_idYesThe source version (a generationId of a track from generate_music, get_entity or find_sounds).
auto_chooseNotrue (default): if the event has no chosen version yet, the new one becomes chosen, so the game plays it. false leaves the choice to the user.

Output Schema

NameRequiredDescriptionDefault
urlYes
createdYes
creditsYes
refundedYes
studioUrlYes
generationIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / auto_choose / description
      Added value: +"true (default): if the event has no chosen version yet, the new one becomes chosen, so the game plays it. false leaves the choice to the user."
    • addedInput schema / properties / origin / description
      Added value: +"repaint: regenerates only the section from start to end; extend: adds `seconds` of music after the end; cover: makes a similar track."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses credit spend, refusal until cost approval, exactly what is charged (section, tail, whole track for cover), and that lyrics/tempo/key are inherited from the source. It does not address reversibility of a repaint or what happens to the previous version after a new one is created.

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?

Densely packed but front-loaded with the credit-approval warning and mode breakdown first; nearly every clause carries operational meaning. The single semicolon-chained block makes it harder to scan than a short list of per-origin lines would be.

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 10-parameter, three-mode generation tool, every required branch (start/end for repaint, seconds for extend, closeness for cover) is covered, and the return value is delegated ('Same response as generate_music') since an output schema exists.

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 description adds real meaning: how note is appended verbatim to the source prompt and should be English tags, how seconds must fit the plan, and that cover charges the full track. This goes slightly beyond the schema text rather than merely restating it.

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?

States a specific verb and resource ('Makes a NEW version of a track from an existing version') and then disambiguates all three modes (repaint section, extend tail, cover similar track). An agent can tell this apart from generate_music and the other siblings without opening the schema.

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?

Explicit routing: origin values map to use cases, the credit approval prerequisite is stated with a pointer to approve_spending, and wait=false is tied to job_status/polling. It also gives a hard constraint ('final length must fit the user's plan', up to 4 min) that governs when extend is viable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources