Skip to main content
Glama

add_narration

Adds an excited voice-over, word-by-word captions, and optional background music to a clip so race answers become shareable vertical videos.

Instructions

Step 2: add an excited voice-over, word-by-word captions and optional background music to a clip made by this server. script = [{"t": seconds_into_video, "text": "line to speak"}, ...] (max 40 lines). music_path is an optional royalty-free audio file you own the rights to (mp3/wav/m4a/ogg/flac). Voices are Microsoft Edge neural voices such as en-US-GuyNeural, en-US-AndrewNeural, en-GB-RyanNeural; the script text is sent to Microsoft's online TTS. Captions sit in a free band that each clip records; caption_y (0.08-0.92, fraction of height from the bottom) overrides it. Needs ffmpeg and edge-tts.

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_path": "<video_path>",
      "script": "<script>"
    },
    "name": "add_narration"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNo+12%
pitchNo+2Hz
voiceNoen-US-GuyNeural
scriptYes
caption_yNo
music_pathNo
video_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 load and does it well: it discloses the 40-line script cap, that script text is sent to Microsoft's online TTS (a network/privacy disclosure), accepted audio formats with a rights constraint, caption band behavior, and the ffmpeg/edge-tts dependencies. The notable omission is whether narration rewrites video_path in place or produces a new file, and what the tool returns.

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?

It is dense but nearly every clause carries operational information — formats, limits, ranges, dependencies — and the pipeline position is front-loaded. The voice/TTS sentence is long and could be split, but there is no 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 seven-parameter media-mutation tool with no annotations and no output schema, it covers ordering, input formats, limits, privacy of the TTS call and dependencies. The remaining gap is what happens to the input file and what is returned, which matters for chaining the next step.

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

Parameters4/5

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

Schema coverage is 0%, so the description must document the seven parameters itself, and it explains the hardest ones: script's [{'t','text'}] element structure with a max of 40 lines, music_path's formats and ownership requirement, voice's naming convention with three concrete examples, and caption_y's 0.08–0.92 range and fraction-of-height meaning. rate, pitch and video_path are left undocumented, which keeps it below a 5.

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 set — add voice-over, captions and optional music to a clip — and frames it as 'Step 2' acting on 'a clip made by this server', which separates it from the create_* video tools in the sibling list. An agent can tell what this does and on what input 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Step 2 ... to a clip made by this server' phrasing makes the prerequisite ordering explicit: a clip must exist first, and music_path is clearly marked optional. It stops short of naming which creation tool to run first or when to skip narration entirely.

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