Skip to main content
Glama

video_to_markdown

Convert videos into compact Markdown using captions, subtitles, or local transcription, and optionally extract on-screen text from keyframes via OCR—without spending vision tokens.

Instructions

Convert a video into compact Markdown WITHOUT spending vision tokens.

Uses the platform's captions (YouTube etc.) or embedded/sidecar subtitles; falls back to local Whisper if installed. With frames=True it also extracts on-screen text (slides, code, labels) using scene-change keyframes + local Tesseract OCR, interleaved with the transcript by timestamp.

Args: source: video URL (anything yt-dlp supports) or absolute path to a local video file. frames: also OCR on-screen text. Slower (downloads the video at <=720p). Use when visuals matter. lang: preferred transcript language code, e.g. "en" or "pt". keep_frames_dir: save the unique keyframes here so you can view only the few you really need. description: include the video description. cookies_from_browser: only if YouTube blocks requests ("confirm you're not a bot"): reuse the user's browser login, e.g. "firefox" or "chrome". Ask the user first.

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": {
      "source": "<source>"
    },
    "name": "video_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo
framesNo
sourceYes
descriptionNo
keep_frames_dirNo
cookies_from_browserNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on cost and side effects: it discloses that frames=True downloads the video at <=720p, is slower, runs Tesseract OCR, and needs a browser login in some cases. The weaker spot is that it never states the shape of the result beyond 'interleaved with the transcript by timestamp' — no mention of pagination, truncation, or failure modes when no captions exist.

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?

Front-loaded with a one-line value proposition before the Args block, and every parameter line adds something actionable. It runs slightly long and repeats implementation detail (local Whisper, local Tesseract) that an agent does not need in order to choose or call the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with a real cost profile and external dependencies, the description covers selection, fallbacks, and side effects well, and an output schema exists so return values need not be repeated. It stops short on failure behavior — what happens when no captions exist and Whisper is not installed — which is the one thing an agent would want before committing to a long download.

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 coverage is 0%, so the description must compensate, and it does: each of the six parameters gets meaning the schema cannot provide. 'source' accepts any yt-dlp-supported URL or an absolute local path, 'lang' is a preference code with examples, 'keep_frames_dir' is explained through its purpose (view only the few frames you need), and 'cookies_from_browser' names concrete values ('firefox', 'chrome') plus the consent requirement.

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 ('Convert a video into compact Markdown') and immediately names the key differentiator ('WITHOUT spending vision tokens'), so an agent knows it produces text rather than frames. The fallback chain (captions -> subtitles -> Whisper) and the frames/OCR mode are concrete enough to distinguish this from any generic media or transcription 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?

Gives clear conditional guidance for the two non-obvious options: frames=True is 'Use when visuals matter' with the cost tradeoff stated, and cookies_from_browser is 'only if YouTube blocks requests' with an explicit 'Ask the user first' prerequisite. No when-not-to-use guidance or named alternatives exist, which keeps it just short of a 5.

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

Deploy Server

Other Tools