Skip to main content
Glama
YouTube Transcript MCP

YouTube Transcript MCP

by alexadark

get_transcript

Fetches YouTube transcripts in plain text, timestamped lines, or structured JSON for a given video URL or ID.

Instructions

Fetches YouTube video transcripts. When a user shares a YouTube URL, use this tool to retrieve the transcript. If the user doesn't specify a format preference, ask them how they'd like to view it: as readable text (plain), with timestamps for referencing specific moments (timestamped), or as structured data (json).

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_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video URL or video ID
langNoLanguage code for transcript (e.g., 'en', 'es', 'fr'). Defaults to 'en'.en
formatNoOutput format: 'plain' for readable text (default), 'timestamped' for text with [00:00] timestamps, 'json' for structured data with metadataplain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It implies a read-only fetch and explains the three output formats, but says nothing about failure modes (no captions, unavailable language), rate limits, auth, or whether the language parameter falls back when the requested track is missing.

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?

Three sentences: purpose first, trigger second, format guidance third. The format enumeration is longer than strictly necessary but each option is given a distinct use case, so no sentence is wasted.

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 simple three-parameter read tool with no output schema, the description covers purpose, trigger, and format choice. It omits what happens when a transcript is unavailable or the requested language is missing, which are the main things an agent could get wrong.

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 the schema already documents url, lang, and format. The description adds only a little meaning to format — notably that "timestamped" is for "referencing specific moments" — which is a modest value-add over the enum documentation, so the baseline of 3 applies.

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?

The description names a specific verb and resource: "Fetches YouTube video transcripts," which is unambiguous. There are no sibling tools to differentiate against, so it stops short of the sibling-distinguishing bar for a 5.

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 trigger condition: "When a user shares a YouTube URL, use this tool." It also tells the agent to ask the user for a format preference when unspecified. It does not cover when not to use it or edge cases such as videos without captions.

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