Skip to main content
Glama

Generate episode music

generate_music
Destructive

An instrumental score for one episode (ElevenLabs Music v2.5), composed scene by scene: each scene is a section as long as the scene, so the cold open hits on the hook, the music sits low under dialogue, peaks on the spike and ends on a cliffhanger sting. prompt: the direction for the score, any language: genre and sound, instruments, mood, tempo (BPM), key, era (e.g. "dark hybrid orchestral revenge score, pulsing synth bass, taiko, 90 BPM, C minor"); it is saved as the episode's music_prompt. Without one, the episode's saved music_prompt, else a brief from the drama's genre and visual style. get_episode_music shows the cue sheet first (free). Render mixes it under the clips' own sound, ducked when someone speaks. Costs credits (see estimate_cost); the result arrives as a take: poll with get_jobs or wait_for_jobs.

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

Input Schema

NameRequiredDescriptionDefault
moodNoOlder: a get_catalog("music_moods") key, added to the direction
modelNoA model id from list_models; omitted = the drama's default for this kind
notesNoExtra direction for this generation only (not saved to the story)
promptNoThe score's direction; saved as the episode's music_prompt
secondsNoLength of the score in seconds (10–300). Omit to match the episode.
episode_idYesThe episode id (ep_…), from get_drama_context or get_episode.
idempotency_keyNoAny unique string you choose; resending the same key returns the first job instead of paying twice

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already flag destructiveHint and openWorldHint, and the description adds genuinely non-schema behavior: credit cost, asynchronous take delivery, prompt persistence, and dialogue ducking in the render mix. However, it never states what the destructive flag implies in practice — whether existing episode music is replaced — which is the single most consequential behavior here. Good supplemental context, but the mutation side effect is left implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and mostly earns its place, but the prose is packed into a few long, comma-chained sentences with parentheticals, and the scene-by-scene 'cold open / spike / cliffhanger sting' elaboration is atmospheric rather than operational. It is front-loaded on purpose but hard to scan for the key facts (cost, async, fallback).

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 costly, asynchronous generation tool with an output schema, the definition covers what the agent needs to invoke it safely: cost, preview path, prompt fallback, and how the result is retrieved. The remaining gap is the overwrite/replacement semantics implied by destructiveHint, which an agent choosing between regenerate and leave-alone would want.

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 this sits at baseline. The one real addition is the fallback chain for prompt (saved music_prompt, else a genre/style brief), which tells the agent prompt can effectively be omitted. The other six parameters (seconds, mood, model, notes, idempotency_key) get nothing beyond their schema text.

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?

The description makes clear what is produced: an instrumental score for one episode, generated by ElevenLabs Music v2.5 and structured scene by scene. The resource and scope are specific and the sibling get_episode_music is explicitly positioned as the preview path. It stops short of a clean leading verb ('Generates…'), opening instead with a noun phrase, which costs it a point.

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?

It routes the agent well: preview the cue sheet with get_episode_music first (free), check cost via estimate_cost, and poll with get_jobs or wait_for_jobs. That names the alternatives and the order of operations. What it lacks is an explicit negative condition — e.g. when not to generate music or what to do if music already exists.

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.