Skip to main content
Glama

YouTube Transcript API

youtube_transcript
Read-onlyIdempotent

Extract a timestamped transcript from any YouTube video link or video ID. Use it to get captioned video text, noting that private videos and videos without captions return no transcript.

Instructions

Convert any YouTube video to a transcript with timestamps. Costs 1 credit per successful call. A transcript exists only when the video has captions, written by the creator or generated by YouTube. Private videos and videos with captions turned off return no transcript. Auto-generated captions can contain mistakes, especially with names and technical terms.

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": "youtube_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video link. Works with watch, youtu.be, Shorts and embed links, or a bare video ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description adds real value beyond that: 'Costs 1 credit per successful call' and the failure modes for private/captions-off videos go beyond structured data. However, the 'successful call' phrasing leaves unclear whether failed calls are free, and it says nothing about transcript language selection despite having no language parameter, which is a meaningful behavioral gap for a no-output-schema tool.

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?

Five short sentences with no filler: purpose first, then cost, precondition, failure modes, and accuracy caveat. Front-loaded and scannable, though the cost and caption-existence points could be tightened into fewer sentences.

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 a single fully-described parameter, no output schema and annotations covering safety, the definition is nearly sufficient. The cost, precondition and accuracy caveats cover the main decision risks. The notable omission is language behavior — nothing tells the agent what happens if a video has multiple caption tracks.

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

Parameters3/5

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

One parameter with 100% schema description coverage; the schema already enumerates accepted URL forms (watch, youtu.be, Shorts, embed, bare ID) and the 300-char limit. The description adds no meaning beyond that, so the baseline 3 applies.

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 ('Convert any YouTube video to a transcript with timestamps') and names the platform, which is what separates it from tiktok_transcript and x_video_transcript in the sibling list. An agent can select it 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 Guidelines4/5

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

Gives usable preconditions: a transcript exists only when the video has captions (creator-written or YouTube-generated), and private or captions-disabled videos return nothing. That lets an agent pre-qualify requests. It stops short of explicit when/when-not routing or naming alternatives, so it is not a 5.

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