Skip to main content
Glama

Compose a Soundtrack / Beat

generate_soundtrack

Generate background music or a beat for a chosen genre and mood, returning a stereo WAV and editable multi-track MIDI arrangement.

Instructions

Use for background music or a beat in a genre: hip-hop, trap/rap, cinematic orchestral, rock, lo-fi, electronic, ambient. Offline by default: the Music Producer plans tempo/key/structure/instruments and the engine composes and synthesizes a stereo WAV (voice-led chords, bass, drums, a melody, section dynamics, mastered to about -14 LUFS) plus an editable multi-track MIDI. It is a synthesized demo, not a studio recording. generative:true uses your MusicGen model on Replicate/HF (quota, budget-guarded). Returns WAV + MIDI paths, exact duration, and the arrangement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNoGenre, e.g. 'hip-hop', 'cinematic orchestral', 'lo-fi', 'electronic'.
subjectYesTheme/mood, e.g. 'rainy midnight city'.
generativeNoUSES QUOTA: render via your MusicGen API model.
durationSecondsNoTarget length; the arrangement is re-flowed to fit (whole bars).
approveOverBudgetNoOnly after the user agrees: proceed past the budget guard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the offline-by-default behavior, the Music Producer/engine pipeline, the exact synthesis contents and loudness target, that output is a synthesized demo rather than a studio recording, the quota/budget guard on generative:true, and the returned artifacts. Missing auth/permission and error/failure behavior keeps it from a 5.

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 use case and genre list before diving into pipeline detail, and every clause is substantive. It is dense and runs long, but no sentence is filler.

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 multi-parameter generative tool with no output schema and no annotations, the description covers the pipeline, mode tradeoffs, quality caveats, and return values well. It stops short of error/limit handling, but an agent has enough to invoke it 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 coverage is 100%, so the schema already documents genre enums, subject, quota, duration re-flow, and budget approval. The description mostly restates these (genres, generative quota, WAV/MIDI), adding little that the schema does not already convey, so the baseline 3 applies.

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 (compose a soundtrack/beat) and immediately scopes it to background music in named genres. It clearly distinguishes from audio siblings like generate_sfx and generate_voiceover by framing itself as music/beat composition.

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?

Opens with explicit when-to-use ('Use for background music or a beat in a genre') and explains the default offline mode versus the generative:true mode. It does not explicitly compare itself against generate_sfx or generate_voiceover, so the sibling boundary is left implicit.

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