Skip to main content
Glama

Burn subtitles into a video

burn_subtitles
Idempotent

Draws subtitles directly onto a copy of a video for TikTok, Reels, and Shorts, where separate subtitle files cannot be used; the original video stays unchanged.

Instructions

Draw subtitles onto a copy of a video (NAME.subbed.mp4), for posting where a separate subtitle file is not possible (TikTok, Reels, Shorts). The input video is never changed; audio is copied.

video_path: absolute path to the video. subtitle_path: the .json written by transcribe (best: any style works, and text edited in it is used), or an .ass (drawn exactly as written), or an .srt / .vtt (plain only). Empty = the subtitle file next to the video; transcribe the video first if there is none. style: plain (white text at the bottom) | karaoke (each word lights up as it is spoken) | shorts (big, two or three words at a time, placed for vertical video). output_path: the video to write; empty = NAME.subbed.mp4 next to the input. Returns the file written, the style, the subtitle file used, the encoder and the picture size.

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>"
    },
    "name": "burn_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNoplain
video_pathYes
output_pathNo
subtitle_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare the non-destructive, idempotent, closed-world profile, and the description reinforces that with specifics: 'The input video is never changed; audio is copied' and the default output name next to the input. It also lists what is returned (file written, style, subtitle file used, encoder, picture size), filling the gap left by the missing output schema. It does not say what happens if output_path already exists, which 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.

Conciseness5/5

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

The summary sentence is front-loaded with the effect and the platform motivation, then each parameter is presented as a labeled line so the agent can scan directly to the field it needs. Every line carries information not available in the schema, so there is no filler.

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?

For a four-parameter media tool with no output schema and no schema descriptions, the definition covers effect, non-destructiveness, audio handling, all parameter semantics with fallbacks, and the shape of the return value. Nothing an agent needs in order to call it correctly is missing.

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 must carry parameter meaning and it does: video_path must be absolute, subtitle_path accepts .json (with edited text honored), .ass (drawn exactly as written), or .srt/.vtt (plain only), and empty falls back to the sibling file. It also documents the style enum values (plain, karaoke, shorts) that the schema types only as a bare string, and the output_path default.

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 description opens with a specific verb and resource ('Draw subtitles onto a copy of a video') and immediately states the output artifact (NAME.subbed.mp4) and the use case (TikTok, Reels, Shorts where a separate subtitle file is not possible). It also distinguishes itself from the transcript path by telling the agent to transcribe first when no subtitle file exists, so the agent can place it relative to the transcribe 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 a clear trigger condition (posting to platforms that cannot accept a sidecar subtitle file) and a prerequisite ('transcribe the video first if there is none'). It does not name explicit alternatives such as convert_subtitles or translate_subtitles for format or language conversion, so there is context but no exclusions.

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