Skip to main content
Glama

Research a topic across YouTube videos

research_topic
Read-only

Search YouTube for a topic and return the transcripts of the top videos in one call, each with its title, channel, and link, so you can compare what several creators say. Timestamps are kept so answers can cite moments. Costs 1 credit per transcript returned (captions only; videos without captions are skipped). Use upload_date for recent coverage.

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": {
      "query": "<query>"
    },
    "name": "research_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesTopic or search terms
videosNoHow many videos to read
channelNoOnly this channel (URL, channel ID, or @handle)
languageNoPreferred caption language (BCP-47)
upload_dateNoOnly videos uploaded within this window
max_chars_per_videoNoTrim each transcript to this many characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, openWorld, non-destructive), but the description goes further with information an agent cannot get from them: a billing rule ('1 credit per transcript returned'), a coverage limit ('captions only; videos without captions are skipped'), and a note that timestamps are preserved for citation. These are exactly the surprising behaviors that affect how a caller plans a request.

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?

Four tight sentences, front-loaded with what the tool does and what comes back, then cost, then the one parameter hint. Every sentence carries new information, though 'Use upload_date for recent coverage' is terse enough to feel appended rather than integrated.

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?

With no output schema, the description takes on the job of describing the return payload — transcripts plus title, channel, link, and timestamps — and warns that captionless videos are omitted, so result counts may fall short of the requested number. For a six-parameter tool this is enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds meaning by tying credit cost to the number of transcripts and by advising upload_date for recency. It does not explain channel, language, or max_chars_per_video beyond what the schema already says, so it is an incremental rather than full contribution.

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 description names a specific verb and resource ('Search YouTube for a topic') and states the distinctive outcome: transcripts of the top videos 'in one call', each with title, channel, and link. That distinguishes it from a plain search or single-transcript fetch without naming the siblings explicitly.

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 'so you can compare what several creators say', which sketches the comparison-research scenario, and 'Use upload_date for recent coverage' steers parameter choice. There is no explicit when-not or named alternative (e.g., search_youtube or get_transcript) to route the agent away when only one video is wanted.

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