Skip to main content
Glama

Get a YouTube transcript

get_transcript

Retrieve captions from one YouTube video by URL or 11-character ID in TXT, Markdown, JSON, SRT, VTT, or CSV, with optional timestamps.

Instructions

Get the transcript (captions) of one YouTube video. Accepts a video URL (watch, youtu.be, Shorts, embed) or an 11-character video ID. Uses 1 GetTranscript credit; failed videos are refunded.

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

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube URL or video ID
formatNoOutput format. txt or md read best for an AI model; json keeps segments with timestamps.txt
timestampsNoInclude timestamps for every line (default false: clean paragraphs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose useful economics: one GetTranscript credit per call with refunds on failure. It does not cover access requirements, rate limits, or what happens for videos with disabled/absent captions, which is the main failure mode for this kind of tool.

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 short sentences, front-loaded with what the tool returns, then accepted inputs, then cost. No filler and nothing redundant with the schema.

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?

A simple single-parameter-of-consequence read tool with fully documented parameters and no output schema; the description covers input forms and billing. Slightly incomplete on failure modes other than refunds and on access/privacy constraints.

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, but the description adds genuine meaning by enumerating accepted URL shapes (watch, youtu.be, Shorts, embed) and the 11-character ID form. That clarifies the most ambiguous input beyond the schema's terse "YouTube URL or video ID".

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?

States a specific verb and resource ("Get the transcript (captions) of one YouTube video"), and the word "one" implicitly contrasts with the bulk sibling get_transcripts. It stops short of naming the sibling explicitly, so an agent must infer the single-vs-many split.

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

Usage Guidelines3/5

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

The phrase "of one YouTube video" implies this is the single-video path, but there is no explicit when-to-use guidance, no mention of when to prefer get_transcripts, and no stated prerequisites (e.g., captions must exist and be public).

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