Skip to main content
Glama

YouTube Transcript + YouTube Search MCP

Get YouTube Transcript

get_youtube_transcript
Read-only

Use this when the user shares a YouTube video link or ID, or asks to summarize, explain, quote, translate, take notes on, or chat about a specific YouTube video, lecture, podcast, or talk. Returns the full spoken text (captions) as one block, plus the title and channel. Set timestamps to true when the user wants timestamps, wants to find or quote where something is said, or wants a timeline or chapter breakdown: each caption line then starts with its [m:ss] time. Accepts watch, youtu.be, Shorts, and live URLs. Do not use for non-YouTube videos or for files the user uploads. If a video has no captions, this returns an error by default: tell the user instead of guessing what the video says. If the user wants a transcript anyway, call again with mode 'auto' (captions if any, otherwise an AI speech-to-text transcript at 3 credits per minute of video). Long videos may answer with a job_id instead of text: then call get_transcript_job.

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

Input Schema

NameRequiredDescriptionDefault
modeNo'native' (default): captions only, 1 credit. 'auto': captions if the video has any (1 credit), otherwise an AI speech-to-text transcript of the audio. 'generate': always an AI transcript. AI transcripts cost 3 credits per minute of video (rounded up), up to 4 hours long; with these modes, language is the language spoken (omit it to use the video's own audio language) and translate is not allowed.
languageNoLanguage code, e.g. 'en', 'es'. Defaults to 'en'.
translateNoLanguage code to machine-translate the transcript into, e.g. 'es', 'zh-CN'. Timestamps stay aligned. Use when the user wants the video's text in another language.
video_urlYesYouTube URL (full or short) or an 11-character video ID
timestampsNoOne line per caption, each starting with its [m:ss] start time. Defaults to false (one block of text).
send_metadataNoInclude title/author/thumbnail metadata. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "'native' (default): captions only, 1 credit. 'auto': captions if the video has any (1 credit), otherwise an AI speech-to-text transcript of the audio. 'generate': always an AI transcript. AI transcripts cost 3 credits per minute of video (rounded up), up to 4 hours long; with these modes, language is the language spoken (omit it to use the video's own audio language) and translate is not allowed.",
      +  "enum": [
      +    "native",
      +    "generate",
      +    "auto"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / translate
      Added value: +{
      +  "description": "Language code to machine-translate the transcript into, e.g. 'es', 'zh-CN'. Timestamps stay aligned. Use when the user wants the video's text in another language.",
      +  "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})?$",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / timestamps
      Added value: +{
      +  "description": "One line per caption, each starting with its [m:ss] start time. Defaults to false (one block of text).",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses credit costs (3 credits per minute for AI transcripts), the default error when no captions exist and the instruction not to guess content, the async job_id fallback, and what is returned (text plus title and channel). These are exactly the behavioral facts an agent needs before spending credits.

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?

Front-loads the trigger, then return shape, then the timestamps switch, then exclusions, then error/fallback behavior — a logical order with no filler. Length is justified by the number of decision points an agent must handle.

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?

For a six-parameter read tool with no output schema, the description covers returns, credits, failure mode, URL formats accepted, and the escalation path. Nothing an agent needs to call it correctly or explain results to a user is missing.

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 coverage is 100%, so the baseline is 3; the description adds practical meaning on top by explaining when to set timestamps to true and tying mode 'auto' to the no-captions recovery path. It does not add much on language/translate/send_metadata beyond the schema, so it stops short of a 5.

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 ('Returns the full spoken text (captions)') and enumerates the concrete outputs (transcript block, title, channel). It also distinguishes itself from the sibling get_transcript_job by explaining that the job tool is the follow-up when a job_id comes back.

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

Usage Guidelines5/5

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

Gives an explicit trigger list (user shares a YouTube link/ID, or asks to summarize, quote, translate, chat about a video) and explicit exclusions ('Do not use for non-YouTube videos or for files the user uploads'). It also routes to alternatives: mode 'auto' for uncaptioned videos and get_transcript_job for long videos.

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.