Skip to main content
Glama

Pipefetch

Search YouTube

youtube_search
Read-only

Search YouTube and get the results with titles, channels, view counts, durations and publish times. Returns at most 40 results and has no further pages. Costs 1 Pipefetch credit; a search without results costs nothing.

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
langNoInterface language code for titles and labels, such as "en".
sortNoResult order. Default "relevance".
typeNoKind of result. Default "video".
limitNoHow many results to return: 1 to 40. Default 20.
queryYesWhat to search for.
countryNoTwo-letter country code the search is run for, such as "US".
uploadedNoOnly results uploaded within this period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations by disclosing the hard cap of 40 results with no pagination, the exact result fields, and the billing rule (1 Pipefetch credit, free when zero results). The no-pagination and cost facts are precisely the behavioral details an agent cannot get from structured fields and that prevent wasted follow-up calls.

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 compact sentences, front-loaded with purpose and result shape, then constraints, then cost. Every clause carries information an agent needs; nothing is redundant with the title or schema.

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?

For a 7-parameter, enum-heavy, no-output-schema tool, the description covers return fields, result ceiling, pagination limits and billing, so an agent can budget and avoid retry loops. The remaining gap is routing guidance: with ~30 search-style siblings, an agent gets no signal on when YouTube search is the right index versus google_search or a direct channel/video fetch.

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% and all three enums carry their own descriptions with defaults, so the schema already does the parameter work. The description reinforces the limit ceiling ('at most 40 results and has no further pages'), which usefully explains why limit cannot exceed 40, but adds nothing about lang, country, uploaded or sort.

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 opens with a specific verb+resource ('Search YouTube') and enumerates what comes back (titles, channels, view counts, durations, publish times), which is enough to tell it apart from the look-up siblings like youtube_video or youtube_channel. It never explicitly names a sibling or states the boundary (e.g. search-driven discovery vs. direct fetch), so it stops just short of 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 Guidelines3/5

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

Usage is only implied by the verb 'Search' plus the returned field list; an agent can infer this is the discovery entry point that feeds youtube_video/youtube_transcript. There is no explicit when-to-use, no when-not-to-use, and no named alternative for cases like 'I already have a video ID' or 'I need more than 40 results'.

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.