Skip to main content
Glama

get_transcript

Fetches the transcript text of a YouTube video from a URL or video ID, with language preferences and paging for long transcripts.

Instructions

Fetch the transcript text of a YouTube video.

Long transcripts are returned in pages of max_chars characters. When the result says truncated: true, call again with offset set to next_offset for the next page. Each call costs 1 credit via API key, so for a whole long video prefer summarize_video, get_best_sections or chat_with_video.

Args: video_url: YouTube video URL or 11-character video ID (watch, youtu.be, shorts, live and embed URLs all work) languages: Preferred language codes in order (e.g. ["en", "es"]). Defaults to English, then whatever the video has. max_chars: Maximum characters of transcript text to return (default 80000; 0 = no limit) offset: Character offset to start from, for paging through a long transcript (default 0)

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

Input Schema

NameRequiredDescriptionDefault
offsetNo
languagesNo
max_charsNo
video_urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose key traits: credit cost per call, page-based truncation with a truncated flag and next_offset, and language fallback to English/whatever the video has. It does not cover failure modes such as videos without captions or invalid IDs, which an agent would want to know 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior and the cheaper-alternative routing are front-loaded, and the Args list is compact. There is minor redundancy between the prose paging paragraph and the offset/max_chars entries, but nothing is wasted or misleading.

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?

An output schema exists, so return-shape detail is unnecessary, and the paging/cost behavior is covered. What remains unaddressed is the no-transcript/error path and whether credits are charged on failure, which matters for a paid, retry-prone call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the Args section explains every parameter: accepted URL formats for video_url, ordered language preference semantics for languages, the max_chars default and the special 0 = no limit case, and offset's role in paging. This fully compensates for the bare schema.

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?

The opening sentence names a specific verb and resource: 'Fetch the transcript text of a YouTube video.' It is immediately distinguishable from sibling tools like summarize_video or chat_with_video, which operate on the same resource but produce different outputs.

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?

The description explicitly states when to prefer alternatives ('for a whole long video prefer summarize_video, get_best_sections or chat_with_video') and gives the reason (each call costs 1 credit). It also gives a concrete paging workflow: when the result says truncated: true, call again with offset=next_offset.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.