Skip to main content
Glama

Get transcript

get_transcript
Read-onlyIdempotent

Get the transcript of a YouTube video.

    Args:
        video_id: YouTube video ID (11 characters, e.g. 'dQw4w9WgXcQ')
        lang: Language code (e.g. 'en', 'it'). Auto-detected if omitted.
        format: Output format — 'text' (default), 'json' (segments with timestamps),
            'srt', 'vtt' (WebVTT subtitles) or 'chunks' (segments merged into
            timestamped chunks of about chunk_size characters, for embeddings).
        chunk_size: format 'chunks' only: target characters per chunk (200-4000,
            default 1000); segments are never split.
        chunk_overlap: format 'chunks' only: characters of whole segments repeated
            from the previous chunk (0-1000, default 0).
    

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

Input Schema

NameRequiredDescriptionDefault
langNo
formatNotext
video_idYes
chunk_sizeNo
chunk_overlapNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / chunk_overlap
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Chunk Overlap"
      +}
    • addedInput schema / properties / chunk_size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Chunk Size"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description still adds real behavioral detail: the five output formats, their defaults, valid ranges for chunk_size (200-4000) and chunk_overlap (0-1000), and the rule that segments are never split. It stops short of describing failure modes such as unavailable captions or unsupported languages.

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 purpose sentence is front-loaded and the per-argument list is compact and scannable; each line contributes distinct information. The 'Args:' docstring formatting is slightly mechanical but not wasteful.

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 an output schema present, return values need no explanation, and the description fully specifies input behavior for a five-parameter tool. The only real gap is the absence of error/edge-case guidance (no captions, missing language track, auto-detection failure).

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?

Schema description coverage is 0%, so the description must carry all parameter meaning — and it does, documenting every one of the five parameters with semantics, example values ('dQw4w9WgXcQ', 'en'), defaults, numeric bounds, and the scope restriction that chunk_size and chunk_overlap apply only to format 'chunks'.

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?

The first line gives a specific verb and resource: 'Get the transcript of a YouTube video.' That clearly separates it from get_chapters, get_video_metadata and the rest of the sibling set, though it never explicitly names a sibling or contrast case.

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 by the purpose and by the format parameter's enumerated modes (text/json/srt/vtt/chunks), but there is no explicit when-to-use guidance, no statement of prerequisites, and no mention of what to do when no transcript exists for a video.

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.