Skip to main content
Glama

YoutubeToText

Burn subtitles into video

burn_subtitles

Queue a video to be downloaded with subtitles burned into the picture. This costs 3x (default), 4x (hd) or 5x (uhd) the video length in minutes, plus 1x per translated language: tell the user the cost and get their go-ahead before calling. Returns the job id, its duration in seconds and the minutes it takes (null when the length is not known yet); poll get_transcription until state is done, then read the burned_video_url field for the download link (valid for 1 hour; a new get_transcription call gives a fresh one). Quality applies to the output video resolution: default = 720p, hd = 1080p, uhd = 4K. Pass target_languages (max 10, e.g. ["Spanish", "French"]) to also produce one burned video per translated language: each appears in the result's translations array with its own burned_video_url. Extra languages add processing time, since every language is a full re-encode, and each one adds 1x the video length to the account's minute usage on top of the quality multiplier. font_size sets the subtitle text size (default ≈7% of video height, large ≈10%, xl ≈12.5%); background draws a semi-transparent black box behind the subtitles for readability (off = white text with a black outline). tag_audio_events marks non-speech audio with tags like (laughter) or [music]; off by default, and the tag language may not match the video's. lyrics (songs, off by default) builds the subtitles from the song's published lyrics, showing every line where several singers sing at once; the result's lyrics_status is applied when it did, otherwise the subtitles are the usual ones.

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

Input Schema

NameRequiredDescriptionDefault
urlYesLink to one YouTube video: youtube.com/watch?v=<id>, youtu.be/<id>, or a /shorts/, /live/ or /embed/ link (m.youtube.com works too). Playlist and channel links are refused; use `get_playlist` and `transcribe_playlist` for those.
lyricsNoFor songs: build the subtitles from the song's published lyrics, timed on the audio, so every line shows where several singers sing at once. Off by default. Falls back to normal subtitles when no lyrics are found or they do not match; `lyrics_status` on the result says which happened. No extra cost.
qualityNoOutput resolution of the burned video, which sets the cost: `default` = 720p at 3x the video length in minutes, `hd` = 1080p at 4x, `uhd` = 4K at 5x.default
verbatimNoKeep filler words (um, uh), false starts and repetitions instead of cleaning them up. Off by default. Same cost either way.
font_sizeNoSubtitle text size: `default` is about 7% of the video height, `large` about 10%, `xl` about 12.5%.default
backgroundNoDraw a semi-transparent black box behind the subtitles for readability. Off = white text with a black outline.
language_codeNoThe video's spoken language as an ISO-639-1 or ISO-639-3 code, e.g. "en", "es" or "yue"; a region subtag is dropped ("en-US" is "en"). Omit to auto-detect. Set it when the language is known: it improves accuracy and keeps the right alphabet.
tag_audio_eventsNoMark non-speech audio with tags like (laughter) or [music]. Off by default: the transcriber picks the tag language itself and it may not match the video's.
target_languagesNoAlso translate the subtitles into these languages, as names in English, e.g. ["Spanish", "French"]. At most 10. Each language adds 1x the video length to the minutes used, so confirm the cost with the user before asking for several.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only establish it is a non-destructive, open-world mutation), it discloses the real operational traits: the 3x/4x/5x minute cost model, the extra 1x per target language and per-language re-encode time, the asynchronous job pattern, and the 1-hour expiry of `burned_video_url` with the refresh trick. This is exactly the non-obvious behavior an agent needs to plan a call and explain cost to the user.

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 valuable content is front-loaded (cost, workflow, return fields), but it is delivered as one dense run-on paragraph with heavy semicolon chaining. Several clauses merely repeat the input schema verbatim (font_size percentages, quality multipliers, background and tag_audio_events text), which dilutes rather than adds information.

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 no output schema and 9 parameters on an asynchronous, paid job, the description carries the full burden and does so: it documents returned fields (`id`, `duration`, `minutes`, `burned_video_url`, `translations`, `lyrics_status`), the null-until-known case, and the polling loop. An agent can complete the task end-to-end from this text alone.

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 already 100%, so the baseline is 3, but the description adds genuine meaning on top: it explains why `target_languages` is expensive (each language is a full re-encode plus 1x minutes), and how `lyrics` surfaces as `lyrics_status` in the result. The quality/font_size/background restatements duplicate the schema, which keeps it short of 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?

The opening states a specific verb and unique artifact: 'Queue a video to be downloaded with subtitles burned into the picture.' It is clearly distinguishable from the transcription/subtitle-retrieval siblings because the output is a burned video file, and it names `get_transcription` as the companion polling tool.

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 an explicit prerequisite ('tell the user the cost and get their go-ahead before calling') and a full workflow (poll `get_transcription` until `state` is `done`), plus conditional guidance for `target_languages`, `lyrics`, `background` and `tag_audio_events`. What is missing is an explicit statement of when NOT to use it, e.g. when the user only wants the subtitle file and `get_subtitles` would suffice.

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.

Resources