Skip to main content
Glama

Get YouTube channel metadata

get_channel_metadata
Read-onlyIdempotent

Retrieve a YouTube channel's name, @handle, ID, subscriber and video counts, country, keywords, and truncated description by passing a channel ID, handle, or URL.

Instructions

Get a YouTube channel's metadata as text: name, @handle, channel ID, subscriber count (as YouTube displays it, e.g. "1.2M subscribers"), video count, country, keywords and description (cut at 2,000 characters). Does not list the channel's videos. Counts as one request against the user's plan.

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

Input Schema

NameRequiredDescriptionDefault
channelYesThe YouTube channel. Pass a channel ID (UC followed by 22 characters), an @handle, or a channel URL (youtube.com/@handle or youtube.com/channel/UC...). Legacy /c/ and /user/ URLs are not supported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: subscriber counts come pre-formatted as YouTube displays them, the description field is truncated at 2,000 characters, results are returned "as text," and the call consumes one request against the user's plan quota.

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 sentences, each carrying distinct information: what is returned, what is excluded, and the quota/truncation caveats. The return-field list is front-loaded and no sentence is redundant.

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?

There is no output schema, so the description must enumerate return values — which it does, including the truncation limit and count formatting. Combined with the quota note, an agent knows payload shape, cost, and scope without further documentation.

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 single channel parameter already documents accepted formats (UC ID, @handle, URL) plus the unsupported legacy /c/ and /user/ forms. The description adds nothing about the parameter, so the baseline of 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?

Specific verb and resource ("Get a YouTube channel's metadata") followed by an enumerated return payload: name, @handle, channel ID, subscriber count, video count, country, keywords, description. It also draws a boundary with "Does not list the channel's videos," which separates it from video-oriented siblings like get_video_metadata.

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?

The only routing signal is the negative scoping sentence "Does not list the channel's videos," which implies video enumeration belongs elsewhere. There is no explicit statement of when to prefer this tool, nor are alternatives such as get_video_metadata or get_transcript named.

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