Skip to main content
Glama

search_videos

Search YouTube videos by query, then limit result count or sort by relevance, date, rating, view count, or title to find relevant content.

Instructions

Search for YouTube videos.

Args: query: Search query string (1-200 characters) max_results: Maximum number of results (1-50, default: 10) order: Sort order - one of: relevance, date, rating, viewCount, title

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": "search_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNorelevance
queryYes
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose concrete operating constraints on the inputs (1-200 character query, 1-50 results, enumerated sort orders). It says nothing about YouTube API quota consumption, rate limiting, or whether results include channel/playlist matches, which would matter for a search call with no annotation safety profile.

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?

One purpose sentence followed by a compact Args block; every line adds information and nothing is redundant. The purpose is front-loaded before the parameter list.

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?

An output schema exists, so return values need not be explained, and the description fully documents the three inputs. It stops just short of completeness by omitting scope (what corpus is searched) and result-count behavior beyond the cap.

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?

Schema description coverage is 0%, so the description must compensate, and it does: all three parameters get meaning, including ranges, a default for max_results, and the full enumeration of valid order values that the schema itself does not express (schema declares order as an unconstrained string).

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 states a specific verb and resource ('Search for YouTube videos'), so the agent knows exactly what operation it performs. It does not distinguish itself from plausible siblings like get_related_videos or get_video_metadata, which is the only thing keeping it from a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no mention of alternatives such as get_related_videos for discovery-by-similarity. The agent must infer the usage context purely from the verb 'Search'.

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