Skip to main content
Glama

Search YouTube videos

search_youtube
Read-only

Search YouTube for videos, or search within one channel by passing its link or @handle. Returns video IDs, titles, channels, durations, and view counts. Free on paid plans; Free plan: 10 a day, then 1 credit.

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_youtube"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum videos to return
queryYesSearch terms
channelNoOnly search this channel (URL, channel ID, or @handle)
upload_dateNoOnly videos uploaded within this window (ignored with channel)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / upload_date
      Added value: +{
      +  "description": "Only videos uploaded within this window (ignored with channel)",
      +  "enum": [
      +    "hour",
      +    "today",
      +    "week",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, non-destructive behavior, so the description's job is lighter. It adds genuinely non-obvious context: the fields returned, the per-day free quota, and the credit cost beyond it — real behavioral facts not present in annotations.

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?

Three short sentences with zero filler: capability first, then channel scoping, then cost. Each sentence carries distinct information and nothing is repeated from the title.

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 helpfully enumerates return fields and discloses quota/credit cost, which are the main surprises for this tool. Minor gaps remain around result ordering and pagination behavior, but nothing needed to invoke it correctly is missing.

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%, so all four parameters are already documented, giving a baseline of 3. The description reinforces the channel parameter's accepted forms and the channel-scoped mode, but adds no syntax or semantics beyond what the schema already states.

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 and resource ("Search YouTube for videos") and adds the channel-scoped variant up front, so the agent knows exactly what the tool retrieves. It never names a sibling (e.g. get_video or list_playlist_videos), so the differentiation from siblings is implicit rather than explicit.

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?

It gives one useful usage rule: pass a channel URL or @handle to scope the search to a single channel. However, it offers no guidance on when to prefer this over siblings like get_video or list_playlist_videos, and no statement of when not to use it.

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