Skip to main content
Glama

x402vid AI Intelligence & Channel Growth for YouTube Videos

AI-Ranked Video Search

search_and_rank_videos
Read-only

Search and fetch AI-ranked YouTube videos with relevance reasoning.

Uses the YouTube Data API to find videos, then Muse Spark AI ranks them by relevance, credibility, and content quality — returning a curated shortlist with reasoning for each recommendation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x_paymentNoBase64 x402 payment payload (required — pass the X-PAYMENT value as an argument over MCP)
num_videosNoNumber of videos to retrieve before AI ranking (default 5, max 20)
search_termYesThe topic or query to search for

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint=false and destructiveHint=false, covering the safety profile. The description adds the ranking criteria and the fact that reasoning accompanies each result, but omits notable traits: the mandatory x402 payment payload and the latency cost of a two-stage fetch-then-rank pipeline.

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?

Two front-loaded sentences that lead with the core action and then explain the pipeline and output. No filler, though the second sentence is slightly verbose about ranking criteria.

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?

An output schema exists, so return shape needn't be documented, and annotations cover the safety profile. The remaining gap is that the description never signals the required x402 payment payload, which is a genuine prerequisite an agent must satisfy before calling.

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% across all three parameters, so the schema already documents search_term, num_videos (default 5, max 20), and the x_payment payload. The description adds no parameter-level detail, so the baseline 3 is appropriate.

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 chain (search, fetch, rank) and resource (YouTube videos), and explains the two-stage mechanism (YouTube Data API discovery + Muse Spark AI ranking on relevance/credibility/quality). This clearly differentiates it from browsing-oriented siblings like trending_on_youtube, though it never names an alternative to route against.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description implies the use case (curated, ranked recommendations) but gives no explicit when-to-use guidance, no prerequisites, and no comparison to siblings such as trending_on_youtube, niche_research, or keyword_autocomplete. An agent must infer selection criteria entirely.

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