Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

YouTube Search

youtube_search

Search YouTube for public videos, Shorts, channels, or playlists using filters and cursor pagination; retrieve typed results and page through matches.

Instructions

YouTube search with cursor pagination — typed hits, ids, canonical URLs, filters (2 credits/page, 0 when a page finds nothing). Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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

Input Schema

NameRequiredDescriptionDefault
qYesSearch query or keywords (min 2 characters).
typeNoall | videos | shorts | channels | playlists.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
limitNoMax items to return (default 20, max 200). Flat 2 credits per call.
cursorNoPagination cursor. Leave empty for the first page; then pass the nextCursor value returned in the previous response.
regionNoISO country code for localized results (default US).
sortByNorelevance | views (alias: popular→views). date and rating answer 400 SORT_NOT_SUPPORTED: YouTube no longer orders search by upload date (use uploadDate) or by rating. With type=shorts only relevance is supported.
durationNoany | under_4 | 4_20 | over_20. Applies to long-form videos (not Shorts).
uploadDateNoany | today | this_week | this_month | this_year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it states the credit price (2 per page, 0 when a page finds nothing), that empty results and failures are never charged, that results are fresh unless cache=true, and that pagination is cursor-based. It stops short of saying anything about authentication requirements, rate limits, or what a failed response looks like, but the economic and caching semantics an agent would otherwise get wrong are covered.

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

Conciseness3/5

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

It is front-loaded and short, but the cost rule is stated twice — "2 credits/page, 0 when a page finds nothing" is immediately restated as "Costs 2 credits. Empty results and failures are never charged." That redundancy plus the parenthetical credit note consumes a third of the text without adding information.

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?

There is no output schema, so the description picks up the slack by naming the shape of results (typed hits, ids, canonical URLs) and explaining how to continue via the cursor. Combined with the full schema coverage of all 9 parameters, an agent has enough to call this correctly; only selection guidance against sibling search tools is absent.

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 the schema already explains q, type, cursor, region, sortBy, duration and uploadDate in detail. The description adds only the caching semantics of cache=true and the per-page credit framing of limit, which is modest added meaning. Baseline 3 is right for a fully documented schema.

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?

"YouTube search with cursor pagination" names a specific verb and resource, and the list of what comes back (typed hits, ids, canonical URLs, filters) makes the output scope concrete. It doesn't carve out a boundary against siblings such as youtube_hashtag_search, but as the general search entry point the purpose is unmistakable.

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: the description tells you to use cursor pagination and cache=true, but never says when this general search is preferable to the hashtag or channel-specific siblings. The one concrete routing signal is the cache flag guidance (free 24h hit, default fresh), which is about invocation rather than tool selection.

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

Deploy Server

Other Tools