Skip to main content
Glama
mohamdben-yahia

YouTube MCP Server

search_videos

Search YouTube for videos, channels, or playlists with keyword queries. Filter results by type, region, order, and publication date to get targeted results.

Instructions

Search YouTube for videos, channels, or playlists.

Args: query: Search keywords or query string. max_results: Number of results to return (1 to 50, default 10). search_type: Type of resource to search for ('video', 'channel', 'playlist'). order: Sort order ('relevance', 'date', 'rating', 'viewCount', 'title'). published_after: RFC 3339 formatted date-time string (e.g. '2024-01-01T00:00:00Z'). region_code: ISO 3166-1 alpha-2 country code (e.g. 'US', 'FR'). raw: If True, returns unaltered raw YouTube Data API response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNo
orderNorelevance
queryYes
max_resultsNo
region_codeNo
search_typeNovideo
published_afterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It does state that search is the operation and explains the raw output toggle ('returns unaltered raw YouTube Data API response'), which is useful. However, it omits authentication/quota considerations, pagination behavior, error handling, and any guarantees about the non-raw return shape, so the behavioral disclosure is only partially complete.

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?

The description is a clean one-line purpose followed by a dense but efficient args list. Every parameter line earns its place and provides format, default, or allowed-value context. There is no filler and no redundant restatement of the tool name.

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 7-parameter search tool with no annotations, the parameter documentation is complete and the existence of an output schema covers return-value expectations. The main missing context is operational guidance such as pagination behavior and routing between sibling search tools, but the description is functionally sufficient for constructing valid calls.

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 description coverage is 0%, and the description fully compensates by documenting every parameter: query, max_results with range/default, search_type allowed values, order allowed values, published_after format with example, region_code format with examples, and raw semantics. This adds substantial meaning beyond the schema's bare titles and defaults.

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 opens with a clear verb, resource, and scope: 'Search YouTube for videos, channels, or playlists.' This lets an agent know exactly what resource is being queried and how the tool differs from more specialized siblings like search_channels. The scope is explicit and the tool's purpose is unambiguous.

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 this is the general YouTube search tool, but it never says when to use it instead of sibling tools such as search_channels or get_video_details. There are no exclusion criteria or alternative-routing hints, so an agent must infer usage from the tool name and parameter list alone.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohamdben-yahia/youtube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server