Skip to main content
Glama

Get YouTube transcript

get_youtube_transcript

Fetch the captions of one YouTube video, Short, or live replay and save them to the account. Returns a JSON file link (title, channel, URL, description, caption text without timings) and a page link where the user can read it on the website. Completes within the call; no polling. Use it for what is said in a video; for what viewers wrote use download_youtube_comments. Playlists and channels are not accepted: call once per video. Fails as not found when the video does not exist or has no captions. Cost: 200 credits up to ten minutes of captions, plus 100 per further started ten minutes. Charged only once saved, again on every call, never retried automatically. Refused up front when the account is out of credits or past due.

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

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube video URL (watch, youtu.be, /shorts/, or /live/ link, including m.youtube.com) or an 11-character video ID.

Output Schema

NameRequiredDescriptionDefault
fileUrlYesURL of the saved JSON file with the video title and transcript segments. Public by ID: anyone with the link can open it, so share it only with the user.
pageUrlYesWeb page for the saved result, where the user can read it or save it as a file. Public by ID like fileUrl, so share it only with the user.
downloadIdYesID of the saved result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / pageUrl
      Added value: +{
      +  "description": "Web page for the saved result, where the user can read it or save it as a file. Public by ID like fileUrl, so share it only with the user.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "downloadId",
      -  "fileUrl"
      -]New value: +[
      +  "downloadId",
      +  "fileUrl",
      +  "pageUrl"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the return artifacts (JSON file link plus page link), that it completes within the call with no polling, the not-found failure mode, the credit cost model, that billing recurs on every call and is never retried, and that calls are refused when out of credits or past due. These details are consistent with readOnlyHint=false and idempotentHint=false.

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 what the tool does and its outputs, then usage routing, then failure and cost in tightly packed but non-redundant sentences. No filler; each clause carries operational information.

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?

Though an output schema exists, the description still supplies the operational facts an agent needs: scope limits, failure behavior, billing and refusal conditions. Nothing material for correct invocation appears 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% and the schema already lists accepted URL forms, so the baseline is 3; the description adds the constraint that playlists and channels are not accepted and that the tool applies to Shorts and live replays, which is meaning beyond the parameter definition.

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 ('Fetch the captions of one YouTube video, Short, or live replay') and names its boundary against the sibling download_youtube_comments. An agent can distinguish it from other YouTube tools without opening the schema.

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?

Explicitly routes the agent: 'Use it for what is said in a video; for what viewers wrote use download_youtube_comments', and excludes playlists/channels with the instruction to call once per video. Both when-to-use and when-not-to-use are covered.

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.