Skip to main content
Glama

Search YouTube (SerpAPI)

youtube_search

Search YouTube live via SerpAPI. Returns video_results (videos), plus channels, playlists, movies and related searches. Each video result's id is the YouTube video id — feed it as v to youtube_video (details, related videos, comments) and to youtube_transcript. sp carries SerpAPI filter and next-page tokens from a prior result for pagination / refined filtering.

Input Schema

NameRequiredDescriptionDefault
glNoCountry code for the search, e.g. 'us', 'uk', 'de'.
hlNoLanguage code, e.g. 'en', 'es', 'pt-br'.
spNoFilter / pagination token from a prior result: carries YouTube search filters and the next-page token.
no_cacheNoForce a fresh SerpAPI fetch and bypass this server's result cache. Default false.
zero_traceNoEnterprise-only ZeroTrace mode: don't store search params/metadata on SerpAPI. Default false.
search_queryYesSearch query for YouTube (required). Same syntax as the YouTube search box.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that the call is live against SerpAPI and what sections come back, plus that `sp` enables continuation. It omits quota/cost, rate limits, failure behavior, and caching semantics (the latter only appears in the schema), which matters for a metered third-party search.

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?

Four tight sentences, front-loaded with what the tool does and what it returns, then the inter-tool chaining instructions. Every sentence carries actionable information 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?

No output schema exists, but the description compensates by naming the returned sections, and all six parameters are documented in the schema. What's missing is operational context — authentication, quota, caching behavior, error cases — for a live external-API search, so it falls just short of fully complete.

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 coverage is already 100%, so the baseline is 3; the description adds value by explaining the lifecycle of `sp` (obtained from a prior result, used for pagination and filter refinement) and the output-to-input link where a result's id becomes the `v` argument. It doesn't elaborate on gl/hl/no_cache/zero_trace beyond the schema, hence not a 5.

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?

States a specific verb and resource ('Search YouTube live via SerpAPI') and enumerates the result sections returned (video_results, channels, playlists, movies, related searches). It also positions itself against siblings by naming youtube_video and youtube_transcript as downstream consumers, so an agent can tell search apart from detail/transcript retrieval.

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?

Gives clear downstream routing: take a video result's id and pass it as `v` to youtube_video or youtube_transcript, and carry `sp` forward for pagination or refined filtering. It doesn't state explicit exclusions (e.g., when to prefer youtube_video instead), but the workflow guidance is concrete enough to select the tool confidently.

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