Skip to main content
Glama

Get YouTube transcript

get_transcript
Read-only

Fetch the transcript of a public YouTube video. Accepts a full URL or an 11-character video ID. Defaults to Markdown (title + text), which is the most compact format for reading or summarizing. Use json for timestamped segments, srt/vtt for subtitle files. Costs 1 credit on success; videos without captions (up to 9 hours long) are AI-transcribed at 1 credit per started minute (paid plans and credit packs; Free reads captions only).

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 URL or video ID
modeNoauto: captions, AI-transcribed audio if there are none. captions: never AI. ai: always transcribe the audio (1 credit per started minute). AI needs a paid plan or credit packauto
formatNoOutput formatmd
searchNoOnly return lines containing this text
end_timeNoOnly return the part before this second
languageNoPreferred caption language (BCP-47, e.g. en, es, pt-BR)
start_timeNoOnly return the part from this second on
timestampsNoPrefix lines with timestamps (text/md)
translate_toNoTranslate the transcript into this language
original_languageNoPrefer the spoken language's captions over English

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"auto: captions, AI-transcribed audio if there are none. captions: never AI. ai: always transcribe the audio (1 credit per started minute)"New value: +"auto: captions, AI-transcribed audio if there are none. captions: never AI. ai: always transcribe the audio (1 credit per started minute). AI needs a paid plan or credit pack"
  2. Changed1 schema field changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "auto",
      +  "description": "auto: captions, AI-transcribed audio if there are none. captions: never AI. ai: always transcribe the audio (1 credit per started minute)",
      +  "enum": [
      +    "auto",
      +    "captions",
      +    "ai"
      +  ],
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / end_time
      Added value: +{
      +  "description": "Only return the part before this second",
      +  "type": "number"
      +}
    • addedInput schema / properties / original_language
      Added value: +{
      +  "description": "Prefer the spoken language's captions over English",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Only return lines containing this text",
      +  "type": "string"
      +}
    • addedInput schema / properties / start_time
      Added value: +{
      +  "description": "Only return the part from this second on",
      +  "type": "number"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds what the annotations cannot: the 1-credit cost on success, the AI-transcription fallback for caption-less videos at 1 credit per started minute, the 9-hour cap, and the paid-plan/credit-pack requirement versus Free's captions-only limit.

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?

Four sentences, front-loaded with the action and scope, then format selection, then cost and plan gating. Every sentence carries information an agent needs to choose parameters or predict charges; nothing is redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with no output schema, the description covers the biggest risks: cost, plan gating, AI fallback, and format choice. The only real gap is how the time-window and search filters interact, which an agent must infer from the schema.

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 would be 3, but the description adds meaning the schema lacks: the 11-character ID form of the url parameter and the contents of the default md format (title + text) plus why it is preferred. It does not explain how search/start_time/end_time combine with each other, which keeps it below a 5.

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?

"Fetch the transcript of a public YouTube video" gives a specific verb and resource and narrows scope to public videos, which an agent can act on immediately. It does not explicitly separate itself from siblings like summarize_video, but the stated resource (raw transcript) is concrete enough to distinguish the output type.

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?

The description tells the agent which format to choose for which task (md for reading/summarizing, json for timestamped segments, srt/vtt for subtitle files) and explains the cost/plan conditions that gate AI transcription, which is real decision-relevant guidance. It stops short of naming an alternative tool to use when a summary rather than a transcript is wanted.

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.

Resources