Skip to main content
Glama
YouTube Transcripts MCP Server

YouTube Transcripts MCP Server

Search YouTube videos

search_videos
Read-onlyIdempotent

Search YouTube by keyword and apply filters for upload date, duration, sort order, and features such as captions; returns video metadata to support discovery and transcript workflows.

Instructions

Search YouTube videos by keyword (YouTube's InnerTube search API, the same one the website uses). Returns video id, title, channel, duration, views, relative publish time, description snippet, thumbnail and badges. Optional filters: upload_date, duration (short <4 min, medium 4-20 min, long >20 min), sort_by, and features (e.g. 'subtitles' = only videos with captions).

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

Input Schema

NameRequiredDescriptionDefault
glNoRegion (2-letter country code). Default US.US
hlNoInterface language for result text. Default en.en
limitNoMax results (1-50). Default 10.
queryYesSearch keywords
sort_byNoResult order. Default relevance.relevance
durationNoshort (< 4 min), medium (4-20 min) or long (> 20 min)
featuresNoFeature filters, e.g. ['subtitles'] for videos with captions, ['live'], ['hd'], ['creative_commons']
upload_dateNoOnly videos uploaded within the last hour/today/week/month/year

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare read-only, open-world, idempotent, and non-destructive behavior. The description adds useful context beyond those annotations: it identifies the InnerTube search backend, enumerates the result fields returned, and explains what several filters mean, though it does not discuss rate limits, authentication, or pagination behavior.

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?

Two sentences are front-loaded with the core action and then give result fields and filters. There is no wasted wording; the parenthetical about InnerTube earns its place by explaining the data source.

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 annotations covering safety and openness, a fully described schema, and no output schema, the description supplies the missing return-field overview and filter semantics. An agent has enough information to invoke the search correctly and interpret the result shape.

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 all eight parameters are already documented in the schema. The description restates filter semantics for upload_date, duration, sort_by, and features, including the important 'subtitles' meaning, but does not add meaningfully more than the schema for the remaining parameters.

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?

The description states a specific verb and resource: search YouTube videos by keyword. It identifies the underlying InnerTube API and lists the returned result fields, so an agent can distinguish this search tool from transcript, chapter, and summarization siblings 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 Guidelines4/5

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

The description makes clear that this is the keyword-search entry point for YouTube videos and that filters can narrow results. It does not explicitly say when to avoid it or name alternatives, but the sibling tools operate on individual videos rather than search, so the usage context is reasonably clear.

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