Skip to main content
Glama
YouTube Transcript MCP Server

YouTube Transcript MCP Server

by LucFauvel

get_youtube_transcript

Fetch a YouTube video transcript by URL or ID, with optional start/end timestamps and language selection, to review or analyze spoken content.

Instructions

Fetches the transcript of a YouTube video between specified timestamps.

Args:
    video_url_or_id: YouTube video URL or video ID
    start_time: Start time in seconds (default: 0)
    end_time: End time in seconds (default: None, means end of video)
    languages: Preferred languages for transcript (default: ['en'])

Returns:
    JSON string containing transcript entries with metadata

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": {
      "video_url_or_id": "<video_url_or_id>"
    },
    "name": "get_youtube_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeNo
languagesNo
start_timeNo
video_url_or_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 behavioral burden. It does well to state defaults explicitly (start_time 0, end_time None meaning end of video) and to say the result is a JSON string of transcript entries. It omits important behavior: what happens when no transcript exists, whether languages fall back or fail, whether private/age-restricted videos error, and any rate limits.

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 purpose sentence followed by compact Args/Returns blocks; nothing extraneous. The Args section repeats parameter names already present in the schema, which is mildly redundant but standard and scannable.

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?

An output schema exists, so the return description is a bonus rather than a necessity. The main gap is failure and fallback behavior for a read tool that depends on third-party content availability, which the description never addresses.

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 description coverage is 0%, so the description must supply parameter meaning, and it does so for all four: video_url/ID, start_time in seconds with default 0, end_time defaulting to end of video, and preferred languages. Minor inconsistency: the description claims a default of ['en'] for languages while the schema default is null.

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 first sentence gives a specific verb and resource: fetch the transcript of a YouTube video, scoped to a timestamp range. An agent can immediately tell what the tool returns. It does not, however, distinguish itself from the sibling get_transcript_info, so the reader must guess which one is the metadata variant.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives, and the sibling get_transcript_info is never mentioned. Usage is only implied by the description of what is fetched; an agent must infer that this is the content-retrieval counterpart to the info tool.

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