Skip to main content
Glama

fetch_video

Retrieves a YouTube video’s title, metadata, chapters, and English transcript with timestamped sections so an agent can build flashcards from the speaker’s own words.

Instructions

STEP 1. Fetch a YouTube video's title, metadata, chapters and English transcript.

Returns {slug, title, video, sections: [{title, start_s, end_s, transcript}], transcript_path}. Sections follow the video's chapters (or ~10-minute parts if it has none); each transcript has [mm:ss] markers you can use for card timestamps. Long chapters are split into "(part k/n)" sections of at most max_chars_per_section characters. Results are cached per video.

If YouTube rate-limits or blocks the fetch, pass transcript_text (pasted captions) or subtitle_path (.vtt/.srt), or set PODCAST_FLASHCARDS_COOKIES_BROWSER / profile cookies_from_browser and retry.

Next: call get_card_guidelines(), read all sections, then write the deck.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
subtitle_pathNo
transcript_textNo
max_chars_per_sectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the return object shape, that sections mirror chapters (or ~10-minute parts), the [mm:ss] markers, the splitting rule at max_chars_per_section, per-video caching, and the YouTube rate-limit/blocking failure mode with workarounds. That is substantially more than a bare 'fetch' statement.

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 the step label and purpose, then a compact return-shape block, then behaviors, then failure handling, then the next step. No filler sentences; the denser parts (return shape, splitting rules) exist precisely because no output schema and no annotations are available to carry that information.

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?

Absent annotations and an output schema, the description compensates by documenting returns, sectioning/timestamp semantics, caching, and error recovery — everything needed to call the tool and interpret results. Nothing material for correct invocation appears to be missing.

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 coverage is 0%, so the description must supply parameter meaning, and it does for three of four: transcript_text is defined as pasted captions used on rate-limit, subtitle_path as a .vtt/.srt file, and max_chars_per_section as the per-section character cap governing '(part k/n)' splitting. Only 'url' is left implicit (full URL vs. video ID is unstated), which is a minor residual gap in otherwise strong compensation.

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?

Specific verb + resource + scope: 'Fetch a YouTube video's title, metadata, chapters and English transcript.' It also labels itself 'STEP 1' of a pipeline, so an agent can immediately distinguish it from siblings like get_card_guidelines or save_deck without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit workflow positioning ('STEP 1', 'Next: call get_card_guidelines(), read all sections, then write the deck') and explicit conditional alternatives for failure: paste transcript_text, supply subtitle_path (.vtt/.srt), or configure cookie sources and retry. The agent knows both the normal path and the fallback paths before invoking.

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