Skip to main content
Glama

YouTube search

run_youtube_search
Read-onlyIdempotent

Search YouTube videos, shorts and streams by keyword with YouTube's filters (upload date, type, length, features): title, description, views, likes, comments, duration, hashtags, subtitles and the channel's subscribers. 5 points per returned record.

Input Schema

NameRequiredDescriptionDefault
queryYesSearch term. e.g. web scraping tutorial
featuresNoFeatures
video_typeNoType. Options: video = Video, movie = Film
date_filterNoUpload date. Options: hour = Last hour, today = Today, week = This week, month = This month, year = This year
max_resultsNoVideos (up to 1000) Default: 10.
length_filterNoLength. Options: under4 = Under 4 minutes, between420 = 4-20 minutes, plus20 = Over 20 minutes
sorting_orderNoSorting order. Options: rating = Rating, date = Upload date, views = View count
subtitles_formatNoSubtitle format. Options: vtt = WEBVTT, xml = XML, plaintext = Plain text
download_subtitlesNoDownload subtitles (when present on the video)
max_results_shortsNoShorts (up to 1000) Default: 0.
subtitles_languageNoSubtitle language. Options: any = Any, de = German, es = Spanish, fr = French, it = Italian, ja = Japanese, ko = Korean, nl = Dutch, pt = Portuguese, ru = Russian
max_results_streamsNoStreams (up to 1000) Default: 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior. The description adds two genuinely non-annotated facts: the fields each record carries and the pricing model ('5 points per returned record'), which is valuable for cost-aware planning. It says nothing about pagination, rate limits, or how video/short/stream result sets are combined.

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 dense sentences that front-load the core operation and keep the field list and pricing note compact. The long comma-separated field enumeration is load-bearing (there is no output schema), though it is the one place that reads as a dump.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with no output schema, the description does cover what comes back per record and the credit cost. It leaves open how the three result-type caps combine and what happens when a filter is omitted, which matters for correct invocation.

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 12 parameters including the six enums are already documented with their options and defaults. The description only loosely echoes the filter families (upload date, type, length, features) without clarifying the interaction between max_results, max_results_shorts, and max_results_streams, so it adds little beyond the schema.

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?

States a specific verb and resource ('Search YouTube videos, shorts and streams by keyword') and enumerates the filter dimensions and returned fields, so the agent knows exactly what it does. It does not distinguish itself from the sibling run_youtube_shorts, which overlaps with the 'shorts' part of this scope.

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

Usage Guidelines2/5

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

The description implies keyword-driven discovery but never says when to choose this over run_youtube_shorts, run_youtube_channel, or run_youtube_comments. There are no exclusions, no prerequisites, and no routing guidance for an agent facing four YouTube siblings.

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