Skip to main content
Glama

YouTube Channel API

youtube_channel_viewer
Read-onlyIdempotent

Look up public YouTube channel stats—subscribers, views, video count, and links—by entering a handle, channel URL, or UC channel ID.

Instructions

See a channel's subscribers, views, video count and links. Costs 1 credit per successful call. Only public information is returned. Hidden subscriber counts show as unavailable. YouTube rounds large counts, so figures are close but not exact.

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_id": "<channel_id>"
    },
    "name": "youtube_channel_viewer"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesChannel handle or link. Use a @handle, a channel link, or a channel ID that starts with UC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, openWorldHint), yet the description adds real value beyond them: a credit cost that only applies on success, a public-data-only scope, and two concrete data-quality caveats (hidden subscriber counts reported as unavailable, rounded large counts). It does not describe failure behavior for invalid or nonexistent channels, which is the main remaining gap.

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?

Five short sentences, front-loaded with what is returned, then cost, then scope, then caveats in descending order of importance. Every sentence carries distinct information with no repetition of 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 one-parameter read tool with no output schema, the description covers what comes back, what it costs, and how the numbers may be imprecise — enough to call it correctly. The missing piece is error/not-found behavior, which matters given the cost model.

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 the channel_id field already spells out the three accepted formats (@handle, channel link, UC-prefixed ID). The description adds no additional parameter meaning, so the baseline 3 applies.

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 opening sentence names a specific verb and resource and enumerates the returned fields (subscribers, views, video count, links), so an agent can distinguish this from youtube_channel_id_finder or youtube_transcript by output alone. It stops short of explicitly naming a sibling to route away from, which keeps it at 4 rather than 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 implied: call this when you have a channel identifier and want aggregate stats. There is no explicit when-to-use or when-not-to-use statement, and no named alternative for cases like resolving a handle to an ID (youtube_channel_id_finder exists but is not referenced). Adequate but leaves the agent to infer context.

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