Skip to main content
Glama

get_video_transcript

Retrieve a YouTube video transcript with timestamped clickable links, so every quote can be traced to its exact moment. Focus on a specific time range or language while keeping citations verifiable.

Instructions

Get a video's transcript as timestamped lines you can quote and cite.

Every line starts with a Markdown link that seeks to that moment, so quoting a timestamp back keeps claims traceable and clickable — e.g. "at [03:15] he says the battery is 17% larger than last year". Reproduce those links verbatim rather than rewriting them as plain text. Narrow long videos with start_seconds and end_seconds. Reads public caption tracks, so it costs no API quota.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
videoYesVideo id, or a watch / youtu.be / shorts URL
languagesNoPreferred language codes in priority order, e.g. ['en', 'en-US']; defaults to the video's original spoken language
end_secondsNoOnly return the transcript up to this offset
chunk_secondsNoMerge caption cues into windows of about this many seconds; 0 keeps raw cues
start_secondsNoOnly return the transcript from this offset onward

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesCanonical watch URL
textYesTranscript as '[[MM:SS]](watch url with &t=seconds) text' lines, one per merged segment; each timestamp is a Markdown link that seeks to that moment, so quoting a line carries its own citation
languageYesTranscript language name
video_idYesVideo id
end_secondsYesEnd offset of the last returned line
is_generatedYesTrue when auto-generated by YouTube rather than creator-supplied
language_codeYesTranscript language code, e.g. en
segment_countYesNumber of timestamped lines returned
start_secondsYesOffset of the first returned line
available_languagesNoLanguage codes with a transcript for this video
Behavior4/5

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

With no annotations, the description carries the burden and does it well: it discloses the output format (timestamped Markdown links), instructs the agent to preserve links verbatim, and states it reads public caption tracks with zero API quota. It doesn't mention failure cases such as missing captions, but core behavioral traits are transparent.

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 description is front-loaded with the primary purpose and output format, and each sentence adds value: linking behavior, verbatim requirement, range parameters, and cost. The example link is useful though slightly long; overall it is well-structured without bloat.

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?

Given an output schema exists and all five parameters are documented, the description is nearly complete: it explains output semantics, parameter usage, cost impact, and limitations to public tracks. It omits only edge-case behavior such as missing or auto-generated captions, which is a minor gap for this complexity level.

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?

Input schema covers 100% of parameters with descriptions, so the baseline is 3. The description adds usage context for start_seconds/end_seconds but doesn't materially elaborate on languages or chunk_seconds beyond the schema, so no higher score is warranted.

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?

Description uses a specific verb+resource ('Get a video's transcript') and immediately characterizes the output as timestamped, quotable lines with clickable Markdown links. This clearly differentiates it from siblings like get_video_details, which retrieves metadata, and the channel-list tools, since the purpose is uniquely transcript retrieval.

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?

It gives clear operational context: narrow long videos with start_seconds/end_seconds, reproduce links verbatim, and reads public caption tracks at no API quota. It doesn't explicitly name sibling alternatives or say when not to use it, but the use case is unmistakable and siblings are unlikely to be confused with it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guyvandam/yt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server