Skip to main content
Glama

search_youtube

Search YouTube by query, filter by date, duration, type, or sort order, and receive JSON results with video ID, title, channel, duration, views, and upload date.

Instructions

Search YouTube and return video results as JSON. Each result includes video ID, title, channel, duration, view count, and upload date. Use when the user asks to find YouTube videos on a topic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchYesYouTube search query.
sort_byNoSort order. Use 'date' for most recent, 'view_count' for most watched.relevance
typeNoResult type filter.video
upload_dateNoFilter by upload date. Omit for all time.
durationNoFilter by duration. short=<4min, medium=4-20min, long=>20min.
Behavior3/5

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

No annotations are provided, so the description must carry the burden. It discloses that results include specific fields (video ID, title, channel, etc.), but does not mention any behavioral traits like rate limits, authentication, or error handling. Adequate but not thorough.

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 concise sentences: the first states purpose and output, the second provides usage guidance. No redundant or unnecessary information.

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 5 parameters, no output schema, and no annotations, the description is fairly complete. It explains the output format and when to use. However, it implies only video results yet the 'type' parameter allows channels and playlists, which is a slight inconsistency.

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%, and the description does not add significant meaning beyond what the schema already says (e.g., sort_by options, type filter, duration). The description restates output fields but does not clarify parameter nuances further.

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 the verb 'Search' and resource 'YouTube', and specifies that it returns JSON with video details (ID, title, channel, etc.). This differentiates it from sibling tools like search_google or search_tiktok_videos.

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 includes explicit guidance: 'Use when the user asks to find YouTube videos on a topic.' While it does not mention when not to use or provide alternatives, this is clear enough for an AI agent.

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/scavio-ai/scavio-mcp'

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