Skip to main content
Glama

Get YouTube transcript

get_youtube_transcript
Read-only

Fetch the full transcript plus metadata (title, channel, duration) for any YouTube video. Accepts a watch, youtu.be, Shorts, or mobile URL, or a raw video ID. No LLM: returns the raw caption text for downstream summarization or repurposing. Same result as POST /api/v1/youtube/transcript. Needs a StartupHub.ai API key with credit (pay as you go).

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

Input Schema

NameRequiredDescriptionDefault
urlYesA YouTube URL (watch / youtu.be / shorts / mobile) or a raw 11-char video ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), and the description adds genuinely non-redundant behavior: an API key with pay-as-you-go credit is required, and results match POST /api/v1/youtube/transcript. It doesn't mention failure modes such as videos with captions disabled, which is the main behavioral gap.

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?

Front-loaded with the core action and return content, then progressively adds input forms, output semantics, and the billing prerequisite. Four sentences is reasonable, though 'Same result as POST /api/v1/youtube/transcript' is marginal for an agent that only sees this tool.

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?

For a one-parameter read tool with no output schema, the description usefully names the returned fields (title, channel, duration, raw caption) and discloses the credit/auth prerequisite. The remaining gap is the no-captions-available case, which an agent would want to know before committing credits.

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% and the single required parameter is fully documented in the schema, so the baseline of 3 applies. The description's enumeration of accepted URL forms (watch, youtu.be, Shorts, mobile, raw video ID) largely restates what the schema already says about 'url'.

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 — 'Fetch the full transcript plus metadata (title, channel, duration) for any YouTube video' — and scopes it with 'No LLM: returns the raw caption text,' which separates it from the article/video-generation siblings. An agent can immediately tell this is the raw-caption retrieval tool rather than a synthesized-content tool.

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?

The line 'returns the raw caption text for downstream summarization or repurposing' implies the right context (when you want raw text to feed another step) and implicitly steers away from generate_youtube_article or generate_youtube_clip. No sibling is named explicitly and there are no stated when-not conditions, so it stops short of a 5.

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.

Resources