Skip to main content
Glama

Get a transcript

youtube_transcript
Read-onlyIdempotent

YouTube API: Get a transcript. The transcript of a video as timed segments and plain text. Without lang you get the video's default caption track. format=vtt puts a WebVTT subtitle file in text; format=chunks returns chunks (index, text, start, end in seconds) with the chunk_size and chunk_overlap used: whole segments merged into pieces of about chunk_size characters, ready for embeddings. Price: 1 credit per call; failed calls are free.

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_id": "<video_id>"
    },
    "name": "youtube_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code (e.g. `en`, `it`, `pt-BR`); auto-translated when the video doesn't have it
formatNo`json` (segments + text), `text` or `srt`. `vtt` (WebVTT subtitles in `text`) or `chunks` (timestamped chunks for embeddings, in `chunks`).json
video_idYes11-character video ID
chunk_sizeNo`format=chunks` only: target characters per chunk (segments are never split)
chunk_overlapNo`format=chunks` only: characters of whole segments repeated from the end of the previous chunk (less than `chunk_size`)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/destructive safety, so the bar is lower. The description adds real behavior beyond them: default caption track when lang is omitted, where each format places its payload (text vs chunks), and a per-call credit cost with failed calls free.

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?

Dense but front-loaded: what it returns, then default behavior, then format variants, then cost. The opening 'YouTube API: Get a transcript' repeats the title, but every later sentence carries information.

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?

With no output schema, the description correctly describes return values per format, including chunk fields (index, text, start, end). It omits failure modes such as videos with no caption track at all, which is the main remaining gap for a 5-parameter tool.

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 earns more by explaining semantics the schema only gestures at: default track selection, vtt writing a WebVTT file into text, and chunk_size acting on merged whole segments rather than raw splitting.

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 a transcript' of a YouTube video) and immediately describes the return shape. It does not explicitly differentiate against siblings like youtube_transcript_languages or youtube_video, but the scope is unambiguous.

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?

Usage is implied through format and lang behavior rather than stated as when-to-use. There is no explicit guidance such as 'use youtube_transcript_languages first to find a language code' or when to prefer this over youtube_video, so an agent must infer the routing.

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.