Skip to main content
Glama

Search YouTube

youtube_search
Read-only

Search YouTube for videos, channels, or playlists by query, optionally restricting result type or ordering to target the content you need.

Instructions

Searches YouTube for videos, channels, or playlists matching a query.

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
typeNoRestrict results to one resource type. Omit to return a mix of all three.
orderNoResult ordering. Defaults to relevance.
queryYesSearch terms.
maxResultsNoMaximum results to return. Defaults to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-network behavior are covered. The description adds nothing further: no mention of result pagination, YouTube search cost/quota implications, or result ordering behavior beyond what the schema params already say.

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?

A single front-loaded sentence with zero redundant wording; nothing is buried or repeated.

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

Completeness3/5

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

No output schema exists, so the agent has no picture of what a result looks like (fields per item, paging tokens, empty-result behavior), and the description does not fill that gap. Given full schema coverage and annotations, this is adequate but incomplete for a search tool.

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%, so every parameter (type, order, query, maxResults) is already documented with enums and defaults. The description only restates the three resource types that the `type` enum already exposes, adding no new semantics.

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?

States a specific verb (searches) and resource (YouTube videos, channels, playlists) plus the query-driven scope. It implicitly separates itself from the get_* siblings, which take IDs rather than queries, but never names that distinction 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 only implied by 'matching a query' — an agent can infer this is the discovery path before calling youtube_get_video or youtube_get_channel, but the description never states that routing or any when-not condition.

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