Skip to main content
Glama
Diterex

youtube-research-mcp

by Diterex

get_video_transcript

Read-onlyIdempotent

Fetch a YouTube video's transcript as plain text without downloading or needing an API key. Gets manual captions or auto-generated ones.

Instructions

Fetch a video's transcript as clean plain text. No download, no API key.

Prefers a human-written caption track and falls back to YouTube's auto-generated one. Nothing is written to disk - the caption track is read straight into memory.

Args: video_url_or_id: An 11-character video ID, or any watch/youtu.be/shorts/ live/embed URL. language: Preferred caption language code (default 'en'). Regional variants match too ('en' will accept 'en-US'); if the language is missing entirely, the first available track is used. include_timestamps: True prefixes each paragraph with [H:MM:SS], which is what you want when you intend to cite a moment in the video. max_chars: Truncate the transcript at this many characters (0 = no limit). Set it when scanning many videos, since a long tutorial can run tens of thousands of characters.

Returns: { "video_id": str, "title": str | None, "channel": str | None, "url": str, "duration_seconds": int | None, "duration": str | None, "upload_date": str | None, # "2022-08-14" "transcript_kind": str, # "manual" or "automatic" "language": str, # track actually used, e.g. "en" "char_count": int, "truncated": bool, "transcript": str # blank-line separated ~30s paragraphs }

Errors: Raises ValueError for an unparseable video reference, and RuntimeError when the video is unavailable or has no caption track at all (some videos genuinely have none - listen for that message rather than retrying).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoen
max_charsNo
video_url_or_idYes
include_timestampsNo
Behavior5/5

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

Although annotations already mark the tool as read-only, idempotent, and non-destructive, the description adds significant behavioral detail: 'Nothing is written to disk - the caption track is read straight into memory,' preference for manual over auto-generated captions, and language fallback behavior. It also discloses error conditions (ValueError, RuntimeError), which goes well beyond the annotation hints.

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 description is well-structured with distinct sections for purpose, behavior, Args, Returns, and Errors. The main action is front-loaded in the first sentence, and every section provides necessary information. While it is relatively long, the length is justified by the lack of an output schema and the need to document four parameters and a complex return object.

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?

The description is comprehensive: it details the full return object with field explanations, lists specific error types and when they occur, and gives practical usage tips such as setting max_chars when scanning many videos. This provides an agent with sufficient context to select and invoke the tool correctly, even without an output schema.

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?

The schema has no descriptions (0% coverage), so the description carries full responsibility. The Args section explains each parameter in detail: accepted video ID/URL formats, language fallback (e.g., 'en' matches 'en-US', first available track if missing), include_timestamps formatting, and max_chars truncation usage. This fully compensates for the schema gap.

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 starts with 'Fetch a video's transcript as clean plain text,' clearly stating a specific verb and resource. It also explains the fallback to auto-generated captions, which helps distinguish this transcript-focused tool from sibling tools that list videos, search, or extract frames.

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?

The description provides no explicit comparison to sibling tools such as list_channel_videos, search_youtube, or get_video_frames, nor does it state when to use this tool instead of them. The usage context is implied by the tool's purpose, but there is no explicit 'use when' or 'use instead' guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Diterex/youtube-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server