Skip to main content
Glama

render_demo

Destructive

Export a narrated demo as an MP4 by muxing a browser recording with optional voiceover and background music. Use it as the final step after recording and voiceover generation.

Instructions

[Cinematic Engine] Export a narrated demo as an MP4.

Muxes a recording with an optional voiceover and optional background music. This is the common last step after start_recording and generate_voiceover. Ken Burns, titles, and multi-clip timelines are not done here; check_environment() returns those ffmpeg commands.

The encode is capped at 120 seconds. On timeout the response includes the ffmpeg command so the agent can finish it in a shell.

Args: video: Path to the recording (webm or mp4), inside the working directory. output: Path of the MP4 to write, inside the working directory. voiceover: Optional narration audio (mp3 or wav). music: Optional background music file. music_volume: Music level from 0 to 1. Default 0.15.

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": {
      "video": "<video>",
      "output": "<output>"
    },
    "name": "render_demo"
  }
}

Input Schema

NameRequiredDescriptionDefault
musicNo
videoYes
outputYes
voiceoverNo
music_volumeNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations the definition adds real operational context: a 120-second encode cap and a documented fallback in which the ffmpeg command is returned on timeout, plus working-directory constraints on the paths. The one thing left implicit is the destructive side of the operation flagged by destructiveHint=true, namely whether an existing file at the output path is overwritten.

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?

The lead sentence states the outcome, the body adds scope and limits, and the Args block handles parameters. No sentence is filler, and the most important constraint (what this tool does not do) appears before the argument list.

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?

With an output schema present, return values need no explanation, and the description covers capabilities, limits, formats and the timeout escape hatch appropriate to this complexity level. The remaining gap is overwrite behavior for the output path, which matters given destructiveHint=true.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does so: it documents all five parameters, accepted formats for video and voiceover, the 0-1 range and 0.15 default for music_volume, which parameters are optional, and the constraint that paths must be inside the working directory.

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 definition gives a specific verb and resource ('Export a narrated demo as an MP4') and then sharpens it by naming the operation it performs (muxing a recording with optional voiceover and music). It also states explicitly what it does not do (Ken Burns, titles, multi-clip timelines) and where that work lives instead, so an agent can separate it from sibling tools 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?

It states the position in the workflow ('the common last step after start_recording and generate_voiceover'), names siblings by name for sequencing, and routes advanced editing needs to check_environment(). Both the when-to-use and when-not-to-use conditions are explicit.

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