Skip to main content
Glama
YouTube & Shorts Analytics MCP Server

YouTube & Shorts Analytics MCP Server

by ara0440-wq

get_video_metadata

Fetches a YouTube video or Shorts title, description, tags, views, likes, and comment count from a URL or video ID via YouTube Data API v3.

Instructions

Fetch title, description, tags, views, likes, and comment count via YouTube Data API v3.

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": {
      "url": "<url>"
    },
    "name": "get_video_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video/Shorts URL or video ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully names the backing source (YouTube Data API v3), hinting at quota and key requirements, and it lists what is returned, but it says nothing about failure behavior for private, deleted, or region-blocked videos, which is the main behavioral risk for this call.

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?

One short sentence, front-loaded with the verb and resource, with the returned fields enumerated compactly. Nothing is wasted and nothing needs to be skimmed past.

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 single-parameter read tool with no output schema, listing the returned fields largely covers the return-value gap. The remaining shortfall is error/edge-case behavior, which is minor for a simple metadata lookup.

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 url parameter is already documented as accepting a video/Shorts URL or a bare video ID. The description adds no format details, accepted URL variants, or examples beyond the schema, 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 description gives a specific verb ("Fetch") plus the exact resource (video metadata) and enumerates the returned fields (title, description, tags, views, likes, comment count). That field list implicitly separates it from siblings like get_video_transcript and get_top_comments, though no sibling is named explicitly.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as get_video_transcript when the agent actually needs spoken content rather than metadata. The agent must infer the routing decision from the field list alone.

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