Skip to main content
Glama
x402-data-mcp

x402-data-mcp

A YouTube channel's latest videos, shorts or streams with views, likes, dates and subscriber count ($0.003)

get_youtube_channel_videos

Fetch a YouTube channel's videos, shorts, or live streams by @handle, URL, or channel ID and return titles, views, likes, dates, duration, and thumbnails.

Instructions

A YouTube channel's latest videos, shorts or live streams: title, views, likes, publish date, duration, description and thumbnail, plus channel id, handle, subscribers and video count. Pass @handle, channel URL or UC id; up to 100 videos, optional publishedWithinDays. No API key or quota. Not charged on 400, 404 or 502. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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": {
      "channel": "<channel>"
    },
    "name": "get_youtube_channel_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoWhich tab to list: videos (default), shorts or streams.
limitNoMaximum videos to return, 1-100. Default 30.
channelYesYouTube channel: @handle (@mkbhd), channel URL, or a UC... channel id.
publishedWithinDaysNoOnly videos published in the last N days, 1-3650. Default: no date limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond annotations: x402 USDC pricing, the X402_PRIVATE_KEY wallet requirement, and that 400/404/502 failures are not billed — important because readOnlyHint=false signals a wallet-spending side effect occurs on every call. It does not mention rate limits or latency, keeping it just short of full transparency.

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?

Front-loads the returned data and identifier forms before cost details, which is the right order. The no-charge-on-failure rule is stated twice ("Not charged on 400, 404 or 502" and "not charged when the call fails"), a small redundancy worth trimming.

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?

With no output schema, the description compensates by listing returned fields plus channel metadata, and it covers input formats, result caps, filtering, auth, and billing failure semantics. Nothing an agent needs to invoke this paid tool correctly appears to be 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 already carry descriptions with defaults and patterns. The description only echoes the identifier format and 100-video cap, adding no syntax or behavior beyond the schema — baseline 3 applies.

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?

Opens with a specific verb+resource ("A YouTube channel's latest videos, shorts or live streams") and enumerates the returned fields, tab selection, and identifier forms. No sibling tool covers YouTube channels, so it is trivially distinguishable from the rest of the catalog.

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?

Tells the agent exactly which identifiers to pass (@handle, channel URL, UC id), the 100-video ceiling, and the optional publishedWithinDays filter. It lacks explicit when-not-to-use guidance or named alternatives, but no plausible alternative exists in this catalog.

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