Skip to main content
Glama
Diterex

youtube-research-mcp

by Diterex

search_youtube

Read-only

Search YouTube by keyword to locate candidate videos when the channel or video ID is unknown. Returns video details such as title, duration, view count, and channel for further research.

Instructions

Search YouTube by keyword when you do not yet know the channel or video.

The entry point for research that starts from a topic rather than a URL: find candidate videos here, then feed their channel or URL to list_channel_videos or get_video_transcript.

Args: query: Free-text search, e.g. "FreeCAD sketcher constraints tutorial". max_results: How many results to return (1-100, default 20).

Returns: { "query": str, "count": int, "videos": [ {video_id, title, url, duration_seconds, duration, view_count, channel} ] } Search results carry no upload date; call get_video_transcript or list_channel_videos if you need one.

Errors: Raises ValueError on an empty query and RuntimeError if the search fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo
Behavior5/5

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

Beyond the read-only annotation, the description discloses important behavioral traits: the exact return structure, the fact that results carry no upload date, and error handling (ValueError on empty query, RuntimeError on search failure). This adds value beyond annotations and helps the agent anticipate edge cases.

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 well-structured with logical sections (purpose, usage, args, returns, errors). Every sentence adds value: the usage paragraph explains the workflow, the args are concise, and the return/error sections are compact. Nothing is redundant or wasteful.

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

Completeness5/5

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

With no output schema, the description fully specifies the return object and its fields. It also covers error conditions, parameter ranges, and provides context for how the tool fits into a larger workflow. This is complete enough for an agent to select and invoke the tool correctly.

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 coverage is 0%, so the description carries full responsibility for parameter meaning. It provides an example for query ('FreeCAD sketcher constraints tutorial') and precise semantics for max_results ('1-100, default 20'), exceeding the bare schema titles. This is essential and well-executed.

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 specific verb+resource: 'Search YouTube by keyword when you do not yet know the channel or video.' It clearly frames the tool as the entry point for topic-based research, contrasting with URL-based tools like list_channel_videos and get_video_transcript. This distinguishes it from siblings and states exactly what it does.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('when you do not yet know the channel or video') and provides guidance on sequencing: 'find candidate videos here, then feed their channel or URL to list_channel_videos or get_video_transcript.' It also notes a limitation (no upload date) and directs users to alternatives for that missing data.

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

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