Skip to main content
Glama

generate_music

Generate instrumental game music as a 30–120 second MP3 saved to your Voidless library. Set genre, mood, instruments, tempo and key from a short text prompt.

Instructions

Generate an instrumental music track (no vocals) for a game: an MP3 of 30-120 seconds saved as a music asset in the user's Voidless library. For a single short sound (a hit, a pickup, a click) use generate_sfx instead. 10 credits on every call, whatever the length (each call makes and bills a new track; refunded if it fails); a slow run returns a job for check_generation. Returns the asset ID, the MP3 link and the credits left.

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
bpmNoTempo in beats per minute, 80-200 (default 100): about 80-100 for calm or exploration music, 120-160 for action or chases
promptYes10-300 characters naming the genre, mood, instruments and where it plays, e.g. 'upbeat chiptune with square-wave lead for a title screen'. Leave tempo and key to bpm and keyScale, which are added to the prompt
durationNoTrack length in seconds, 30-120 (default 60). The price does not change with length
keyScaleNoMusical key and scale, e.g. 'A minor', 'D major' (default 'C major'). Minor keys sound darker or tenser, major keys brighterC major

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • addedInput schema / properties / bpm / description
      Added value: +"Tempo in beats per minute, 80-200 (default 100): about 80-100 for calm or exploration music, 120-160 for action or chases"
    • changedInput schema / properties / duration / description
      Previous value: -"Seconds (30–120)"New value: +"Track length in seconds, 30-120 (default 60). The price does not change with length"
    • changedInput schema / properties / keyScale / description
      Previous value: -"e.g. 'A minor', 'D major'"New value: +"Musical key and scale, e.g. 'A minor', 'D major' (default 'C major'). Minor keys sound darker or tenser, major keys brighter"
    • changedInput schema / properties / prompt / description
      Previous value: -"Genre, mood and instruments, e.g. 'upbeat chiptune for a title screen' (10–300 chars)"New value: +"10-300 characters naming the genre, mood, instruments and where it plays, e.g. 'upbeat chiptune with square-wave lead for a title screen'. Leave tempo and key to bpm and keyScale, which are added to the prompt"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the generic profile (readOnlyHint=false, idempotentHint=false), and the description goes well past them: a fixed 10-credit charge per call regardless of length, explicit billing of every new track, refund on failure, and the async fallback when a run is slow. It also states exactly what comes back (asset ID, MP3 link, credits left), so an agent knows the cost and the return shape before calling.

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?

Three dense sentences, front-loaded with purpose and output, then the sibling routing, then cost/asynchrony/returns. Every clause carries information an agent needs; nothing is repeated from the schema verbatim beyond a minor duration restatement.

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 four-parameter generation tool with no output schema, the description covers cost, billing semantics, failure refund, async fallback, sibling choice and the returned fields. An agent has everything needed to decide, budget and call correctly.

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% and each parameter already carries range guidance and musical advice, so the schema does the heavy lifting. The description adds only the 'no vocals' restriction on what the prompt may ask for and restates the 30-120 second window already in the duration schema. Baseline 3 is appropriate.

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 opens with a specific verb and resource ('Generate an instrumental music track') and immediately qualifies the output ('an MP3 of 30-120 seconds'), the destination ('saved as a music asset in the user's Voidless library') and the negative constraint ('no vocals'). An agent can distinguish this from every other generate_* sibling without reading 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?

It names the alternative explicitly and gives the selecting condition: 'For a single short sound (a hit, a pickup, a click) use generate_sfx instead.' It also routes to the async path ('a slow run returns a job for check_generation'), covering both the sibling choice and the follow-up step.

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