Skip to main content
Glama

youtube_search

Read-only

Search YouTube for videos or channels. Returns titles, channel, view counts, upload dates, length and links (or, for channels, subscriber and video counts). Filter by upload date and length; sort by relevance, date, views or rating.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "youtube_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoDefault relevance
typeNovideo (default) or channel
limitNoMax results (default 10, max 20)
queryYesWhat to search for
durationNoshort <4 min, medium 4-20 min, long >20 min (optional)
uploadedNoOnly videos uploaded within this period (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine value beyond that by enumerating the return payload (titles, channel, view counts, upload dates, length, links, and for channels subscriber/video counts), which tells the agent what to expect without an output schema. It stops short of describing pagination or result ordering behavior.

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 sentences, both earning their place: the first states the action and the return shape, the second covers filtering and sorting. The most decision-relevant information (what it searches and what comes back) is front-loaded with no filler.

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?

With no output schema, the description compensates by listing the fields returned for both videos and channels. Combined with a fully documented six-parameter schema and clear annotations, an agent has nearly everything needed; only pagination and result-ordering behavior are unaddressed, which is a minor gap for a search tool capped at 20 results.

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 four documented enums, so the schema already carries the parameter meaning; the description largely restates it ('Filter by upload date and length; sort by relevance, date, views or rating'). It does not add format details, default values, or edge-case behavior beyond what the schema documents, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Search YouTube for videos or channels') and immediately enumerates the returned fields, so an agent knows exactly what this tool produces. It is clearly distinct from sibling tools like youtube_video or youtube_channel_stats by virtue of being a query tool, though it does not name those alternatives explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is the entry point for discovering videos/channels before calling detail tools like youtube_video. There is no explicit 'use this when...' guidance, no exclusions, and no mention of sibling tools such as youtube_channel_stats that might otherwise be tempting for channel lookups.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources