Skip to main content
Glama

searchVideos

Read-onlyIdempotent

Find YouTube videos or channels by query. Use filters for recency, duration, and region to refine results and get video or channel IDs.

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?

Annotations already indicate read-only and idempotent behavior. The description adds value by specifying that the tool returns videoId or channelId needed for other tools and mentions filtering capabilities, providing context beyond annotations.

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 concise with three sentences, each adding value: first sentence states purpose, second gives specific usage guidance, third notes return values. No fluff, well front-loaded.

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 parameter count and schema richness, the description explains return IDs and filtering. It lacks pagination details or full response structure, but is sufficient for a search tool with good schema documentation.

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 coverage is 100% with well-described parameters. The description adds minimal extra meaning beyond the schema, such as emphasizing that 'type' must be set to 'channel' for channel searches, but overall does not significantly enhance parameter understanding.

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 is a universal search tool for YouTube content, explicitly distinguishing between searching for videos (default) and channels. It also mentions returning IDs needed for other tools, which sets it apart from sibling tools that are more specialized.

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 guidance on when to use this tool (finding videos or channels) and explicitly instructs to set 'type' to 'channel' for content creators. It implies when not to use it by the existence of sibling tools for specific tasks, but lacks explicit exclusions.

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