Skip to main content
Glama

Groundsocial

Search YouTube

youtube_search_videos
Read-onlyIdempotent

Search YouTube: videos, Shorts, channels or playlists, with sort, date, duration and feature filters.

YouTube search as the site runs it, about 20 results a page. type=all (default), video, short, channel, playlist or movie; sort=relevance (default), popular, date or rating; upload_date=hour|today|week|month|year; duration=short (<3 min), medium (3–20) or long (>20); features (comma list): live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased; region and language localise. Search operators like intitle:"…" work in q. details=true fills each video result with exact counts and dates (slower).

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "q": "<q>"
    },
    "name": "youtube_search_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesWhat to search for.
sortNo
typeNo
afterNoThe previous page’s `nextPageToken`. Tokens last 6 hours.
regionNoISO 3166-1 alpha-2 country: the results a visitor there sees.
detailsNo
durationNo
featuresNoComma list of: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased.
languageNoISO 639-1 language code (en, es, pt-BR).
upload_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, yet the description still adds non-obvious behavior: cost of 1 credit per call, automatic refund on failure, ~20 results per page, and the latency tradeoff of details=true. It also discloses that results carry cost_credits and credits_remaining, which an agent needs since no output schema exists. None of this duplicates the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and page-size expectation are front-loaded, and the dense semicolon-separated clauses each carry filter semantics efficiently. There is minor redundancy in restating "Read-only, public data only" when readOnlyHint is already set, but the piece is information-dense without filler.

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?

For a 10-parameter search tool with no output schema, the description covers cost, refund policy, page size, token lifetime implication via pagination mention, latency tradeoffs, and what the response includes. An agent has enough to call it correctly and predict the cost of doing so.

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?

With only 50% schema description coverage, the description compensates by defining every filter family: type values, sort values, upload_date buckets, duration thresholds with minute cutoffs, the full features comma-list, region/language localisation, and search operators like intitle:"…" usable in q. It adds genuine meaning beyond the bare enum values in the schema, notably the semantic of details=true.

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 and resource ("Search YouTube") and immediately enumerates the entity scope: videos, Shorts, channels or playlists. It also states that this is site-native search returning ~20 results per page, which is precise enough for an agent to distinguish it from a channel-scoped or hashtag-scoped lookup without opening the schema.

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?

It gives clear operational context for when each filter applies (type selects entity kind, sort controls ordering, upload_date restricts recency, duration/features narrow results) and notes that details=true is slower, which helps the agent decide when to enable it. It stops short of explicitly contrasting with siblings like youtube_channel_search or youtube_search_suggestions, so it lands at 4 rather than 5.

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.