Skip to main content
Glama

CleanTranscript YouTube Transcript MCP

Get YouTube Transcript

get_youtube_transcript
Read-onlyIdempotent

Extract the verified caption track of any public YouTube video (watch, youtu.be, Shorts, Live, embed, or 11-character video ID). Supports timestamped text, timestamp-free clean prose, Obsidian YAML Markdown, SubRip (.srt), WebVTT (.vtt), and pagination for long videos.

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": "get_youtube_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video URL (e.g. https://www.youtube.com/watch?v=...) or 11-character video ID.
pageNo1-based page number when paginating long transcripts (default: 1).
formatNoOutput format: text (default), markdown (Obsidian YAML + clickable youtu.be links), srt, or vtt.text
max_charsNoMaximum characters per page (1000 to 32000, default: 16000).
include_timestampsNoInclude [MM:SS] timestamps in text/markdown output (default: true). Set false for token-saving clean prose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior, so the description only needs to add operational context — and it does: captions must be "verified" (i.e. it surfaces existing tracks rather than generating a transcription), only public videos are supported, and long videos are paged. It stops short of saying what is returned when a video has no caption track or how many pages to expect.

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?

Two dense sentences, front-loaded with the core action and scope before the format/pagination detail. The parenthetical list of URL shapes and format acronyms is long but each item earns its place by preventing a bad invocation.

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 no output schema, the description does the necessary work of explaining that the return is caption text in one of several formats with optional timestamps and page limits. Missing only edge-case behavior (no captions, private video, truncation), which keeps it from a 5.

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

Parameters3/5

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

Schema coverage is 100%, so all five parameters are already documented in structured form and the baseline is 3. The description reinforces the practical intent of format (Obsidian YAML Markdown, SubRip, WebVTT) and of pagination ("for long videos"), but adds little semantics the schema doesn't already carry, and says nothing about the max_chars/page interaction.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ("Extract") and resource ("verified caption track") and bounds the scope to "any public YouTube video," even enumerating accepted URL shapes (watch, youtu.be, Shorts, Live, embed, 11-char ID). It distinguishes itself from get_video_transcript_metadata and find_in_transcript by implication (it returns full transcript content) but never names or contrasts them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the tool for pulling a whole transcript, and "public YouTube video" quietly excludes private/unlisted content. There is no explicit when-to-use versus the sibling metadata or in-transcript search tools, and no stated fallback when no captions exist.

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