Skip to main content
Glama

Render an episode

render_episode
Destructive

Joins the selected video of every scene, in order, into the episode MP4 (1080×1920 for 9:16, H.264/AAC): the clips' own dialogue and sound, the episode music underneath (ducked whenever someone speaks), subtitles burned in large for phones and also delivered as SRT/VTT, and a short fade out. Refuses when a scene has no selected video or a stale one, unless allowed. Costs 1 credit per episode. Follow it with wait_for_jobs, then list_renders for the links.

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": "render_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
musicNoMix the episode's selected music under the clips (ducked under dialogue)
subtitlesNoburn: drawn into the video (and also as SRT/VTT); file: SRT/VTT only; noneburn
episode_idYesThe episode id (ep_…), from get_drama_context or get_episode.
resolutionNoOutput height of the rendered episode.1080p
allow_staleNoUse videos made before their scene changed instead of refusing
music_volumeNoThe music's level under the clips, 0–1; omitted: the episode's music_volume, else 0.4
allow_missingNoLeave out scenes without a selected video instead of refusing
idempotency_keyNoAny unique string; repeating a call with the same key returns the first result instead of charging again.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses the real side effect (1 credit per episode), the failure modes and their escape hatches, the exact output spec (1080×1920, H.264/AAC, fades), and the audio ducking behavior. That is exactly the extra context the destructiveHint/readOnlyHint flags cannot convey.

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?

Two sentences, front-loaded with what the render produces, then the cost, refusal conditions and downstream calls. Every clause carries information an agent needs; nothing is padding.

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?

With an output schema covering return values and full annotation coverage, the description supplies the remaining pieces an agent needs for an 8-parameter, credit-charging mutation: cost, preconditions, overrides and the required follow-up calls.

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 every parameter is already documented, including the subtitles enum, music ducking and allow_stale/allow_missing semantics. The description restates the default burn-plus-SRT/VTT behavior and ducking but adds no format, precedence or interaction detail beyond the schema.

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?

It states a concrete verb and resource: joining the selected video of every scene, in order, into the episode MP4, with the codec, aspect ratio and audio treatment spelled out. An agent can tell this is the full rendering step, not a lightweight preview, but the description never names preview_render and so doesn't explicitly draw the boundary with that sibling.

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 gives explicit sequencing — call it, then wait_for_jobs, then list_renders for the links — and states when it refuses (a scene with no selected video or a stale one) plus the flags that override the refusal. It stops short of saying when to prefer preview_render or estimate_cost first.

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.