Skip to main content
Glama

searchVideos

Read-onlyIdempotent

Search YouTube videos or channels using keyword queries. Filter results by recency, duration, region, and more. Retrieves identifiers for further use.

Instructions

Universal search tool for YouTube content. Use this to find videos (default) or channels. To find a specific content creator, you MUST set type to 'channel'. Supports filtering by recency (e.g., 'pastWeek') and videoDuration. Returns videoId or channelId needed for other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query string to find videos
maxResultsNoMaximum number of results to return (1-500, default: 10)
orderNoSort order for results (default: relevance)
typeNoType of content to search for (default: video)
channelIdNoRestrict search to specific channel ID
videoDurationNoFilter by video duration. 'any' (default): no duration filter. 'short': videos less than 4 minutes. 'medium': videos 4 to 20 minutes. 'long': videos longer than 20 minutes.
recencyNoFilter by recency. Possible values: 'any', 'pastHour', 'pastDay', 'pastWeek', 'pastMonth', 'pastQuarter', 'pastYear'.
regionCodeNo2-letter country code to restrict results
Behavior4/5

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

The description adds useful behavioral context beyond the annotations, such as that the tool returns 'videoId or channelId needed for other tools' and mentions filtering capabilities. The annotations already declare readOnlyHint and idempotentHint, so the description complements them well.

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 three sentences, front-loaded with purpose, and every sentence adds essential information. No fluff or repetition.

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?

Given the complexity (8 parameters, no output schema) and rich schema coverage, the description covers the main use cases and return values. It could mention pagination or default behavior for omitted parameters, but the schema handles most details.

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?

With 100% schema description coverage, the baseline is 3. The description adds value by specifying that type defaults to 'video' and emphasizing the MUST condition for channel search. It also highlights the key return values (videoId/channelId) which are not in the schema.

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 clearly states it's a universal search tool for YouTube content, with the ability to find videos (default) or channels. This distinguishes it from sibling tools like getChannelStatistics or getVideoDetails, which are more specific.

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 provides clear context for when to use the tool (e.g., 'Use this to find videos or channels') and gives explicit guidance on parameter usage ('To find a specific content creator, you MUST set type to channel'). It does not explicitly mention alternatives among siblings but the context is sufficient.

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

Install Server

Other Tools

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/kirbah/mcp-youtube'

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