Skip to main content
Glama
YouTube Transcripts MCP Server

YouTube Transcripts MCP Server

Get video chapters

get_video_chapters
Read-onlyIdempotent

Extract a YouTube video's chapters with start/end times and deep links, using creator markers or deriving topic segments from the transcript when none exist.

Instructions

Chapters of a YouTube video with start/end times and deep links. Uses the creator's chapters from the description (or YouTube's chapter markers) when present; otherwise derives topic segments from the transcript (time windows + keyword-shift detection) and titles them with their distinctive keywords and a representative sentence.

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": "<video>"
    },
    "name": "get_video_chapters"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube video id (e.g. dQw4w9WgXcQ) or URL (watch?v=, youtu.be/, /shorts/, /embed/, /live/)
sourceNoauto (default): creator chapters, else derived; description: creator chapters only; transcript: always deriveauto
languagesNoPreferred caption languages in priority order, e.g. ["en", "de"]. Manual captions beat auto-generated ones. Default ["en"].
target_chaptersNoDerived chapters only: desired number of chapters (default scales with video length)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Read-only/idempotent behavior is already in annotations, but the description adds valuable process detail: creator chapters are preferred, YouTube markers are a secondary source, and transcript derivation uses time windows plus keyword-shift detection with keyword and representative-sentence titles. It does not discuss failure modes (no chapters available, video unavailable), which holds it below a 5.

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?

Two compact sentences, front-loaded with what the tool returns before explaining provenance and fallback. The long parenthetical about keyword-shift detection is dense but earns its place by explaining derived output.

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?

No output schema exists, so the description must convey the return shape, and it does (start/end times, deep links, titles). Combined with the fallback logic and derivation approach, this is sufficient for correct invocation; only error/empty-result behavior is left unaddressed.

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 video, source, languages, and target_chapters are all documented in the schema itself; the description adds only the high-level reasoning (creator vs derived) that the source enum already encodes. It introduces no format or precedence guidance beyond what the structured fields state.

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 ('chapters of a YouTube video') and enumerates the returned fields (start/end times, deep links), which clearly separates it from siblings like get_transcript or summarize_transcript that produce continuous text or prose summaries.

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 resource named: reach for this when you need navigable segments rather than a transcript. There is no explicit when-not or routing sentence naming an alternative (e.g. 'if you want the full text, use get_transcript'), so an agent must infer the choice.

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