Skip to main content
Glama

YouTube Transcript

youtube_transcript
Read-onlyIdempotent

Get the transcript of any YouTube video as plain text. Use it to summarize or answer questions without watching the video.

Instructions

Fetch the transcript (captions) of a YouTube video as plain text. Use to summarize or answer questions about a video without watching it. Fails cleanly if the video has no captions.

Args:

  • video (string): Video URL or 11-character video ID.

  • lang (string): Preferred caption language code (default 'en'; falls back to whatever exists).

Returns the transcript text.

Example: { "video": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
videoYesYouTube URL or video ID
langNoPreferred language codeen
Behavior5/5

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

Beyond readOnlyHint and idempotentHint, description adds clean failure for no captions, language fallback, and return format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Front-loaded with purpose, then usage, parameters, and example—no redundant sentences.

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

Completeness5/5

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

For a simple fetch tool with no output schema, description covers input, behavior, and output adequately.

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?

Adds meaning beyond schema: video can be URL or ID, lang default 'en' with fallback behavior.

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 description clearly states it fetches YouTube transcript as plain text, distinct from siblings like fetch_url or extract_links.

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?

Explicit use case provided ('summarize or answer questions') and mentions failure behavior, but no direct alternatives or when-not-to-use.

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/highercomve/mcptools'

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