Skip to main content
Glama

Extract YouTube Transcript

extract_youtube_transcript
Read-only

Extract YouTube transcripts with timestamps from public captioned videos, with page-crawl fallback and optional saving of the full transcript as Markdown.

Instructions

Extract YouTube transcripts with timestamps. Works with public captioned videos. Supports fallback to page crawl. Use output_path to persist the full unsliced transcript to disk as markdown.

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

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video URL
timezoneNoIANA timezone name (e.g. 'Asia/Tokyo', 'America/New_York') used to convert the video's publish time, returned under metadata.published_at (requires enrich_metadata=True). When unspecified, defaults to 'UTC' (the original YouTube offset is always kept in metadata.published_at.original).UTC
languagesNoLanguage codes in preference order
llm_modelNoLLM model
overwriteNoOverwrite an existing output file at output_path. Defaults to False.
output_pathNoAbsolute file path (auto .md extension) to persist the full unsliced transcript. When set, the response is slimmed to metadata+file path. content_limit/content_offset still affect the response copy but not the on-disk file.
llm_providerNoLLM provider
translate_toNoTarget language for translation
content_limitNoMax characters to return (0=unlimited)
auto_summarizeNoAuto-summarize large content
content_offsetNoStart position for content (0-indexed)
summary_lengthNo'short'|'medium'|'long'medium
enrich_metadataNoEnrich metadata (upload_date, view_count) via page crawl
fallback_timeoutNoFallback crawl timeout in seconds
include_metadataNoInclude video metadata
include_timestampsNoInclude timestamps
max_content_tokensNoMax tokens before summarization
preserve_formattingNoPreserve formatting
enable_crawl_fallbackNoEnable page crawl fallback when API fails
include_content_in_responseNoWhen True (with output_path set), keep the transcript in the response too. Note: the response copy is still subject to content_limit/content_offset slicing; only the on-disk file holds the full transcript. Defaults to False.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changedv0.4.2
    • addedInput schema / properties / timezone
      Added value: +{
      +  "default": "UTC",
      +  "description": "IANA timezone name (e.g. 'Asia/Tokyo', 'America/New_York') used to convert the video's publish time, returned under metadata.published_at (requires enrich_metadata=True). When unspecified, defaults to 'UTC' (the original YouTube offset is always kept in metadata.published_at.original).",
      +  "type": "string"
      +}
  3. Addedv0.3.2
  4. Removedv0.1.6
  5. First observedv0.1.7

TDQS

A3.6/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses the crawl fallback path and the important side effect that output_path writes a full unsliced transcript to disk while the response copy is slimmed. It does not disclose failure modes (no captions, private video) or the interaction with translation/summarization flags; note the optional disk write is in slight tension with readOnlyHint, though the description is the accurate party here.

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?

Three tight sentences, front-loaded with capability then constraints then the persistence tip; no filler. It could have spent one of those sentences on the higher-impact parameters (languages, translate_to, auto_summarize) instead of the already-documented output_path behavior.

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

Completeness3/5

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

Given 20 parameters and an output schema, the essentials (what it fetches, caption-only limitation, fallback, file persistence) are covered, but transcript slicing, translation, and auto-summarize behavior — the most confusion-prone features — go unmentioned. Adequate but not complete for a tool this configurable.

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?

Schema description coverage is 100%, so every one of the 20 parameters is already documented in the schema, and the description's output_path sentence largely restates what the output_path description says. Baseline 3 is appropriate; the description adds little parameter meaning the schema does not already carry.

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 ('Extract YouTube transcripts with timestamps') and adds practical scope ('works with public captioned videos'). It is clearly distinguishable from batch_extract_youtube_transcripts by implication of a single URL input, though it never names the batch sibling explicitly.

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?

Gives useful constraints ('public captioned videos') and a routing hint for output_path ('persist the full unsliced transcript to disk'), but there is no explicit when-to-use vs. alternatives guidance — nothing tells the agent to use batch_extract_youtube_transcripts for multiple URLs or get_youtube_video_info when only metadata is wanted.

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