Skip to main content
Glama
YouTube Model Context Protocol (MCP) Server

YouTube Model Context Protocol (MCP) Server

by nilhn9660

youtube_get_analytics_report

Retrieves YouTube Analytics data for watch time, views, retention, subscriber gains, and traffic sources across a date range, so you can measure channel and video performance.

Instructions

Query official YouTube Analytics API v2 for watch time, views, retention, subscriber gains, and traffic sources.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>",
      "metrics": "<metrics>"
    },
    "name": "youtube_get_analytics_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
metricsYes
end_dateYes
video_idNo
dimensionsNo
start_dateYes
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a read-only reporting call and mentions the upstream API version, but says nothing about authentication requirements, the notoriously strict Analytics API quota, data latency for recent dates, or whether unsupported metric combinations error out. For a 7-parameter reporting tool with zero annotation coverage, these omissions matter.

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?

A single front-loaded sentence with no filler; the API version and metric families are stated up front. It is efficient, though arguably under-specified rather than concise in the parts that need detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The presence of an output schema relieves the description of explaining return values, which keeps this from being worse. However, a 7-parameter, 3-required analytics query with 0% schema coverage and no annotations needs far more about valid metric/dimension pairing, date formats, and failure modes than one sentence provides.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate and largely fails. The metric names it lists give a hint about the metrics array, but start_date/end_date formats, the sort grammar, max_results semantics, and especially dimensions values are entirely undocumented in both places. An agent cannot reliably construct a dimensions-based traffic-source breakdown from this text.

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 uses a specific verb (Query) against a named resource (official YouTube Analytics API v2) and enumerates the metric families returned: watch time, views, retention, subscriber gains, traffic sources. This tells an agent exactly what data class to expect. It stops short of distinguishing itself from the sibling youtube_get_revenue_report, leaving the boundary implicit.

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 guidance at all — no mention of prerequisites like channel ownership or OAuth scope, no exclusion of the revenue-report sibling, and no indication of which date ranges or granularities are valid. The agent must infer everything about selection context from the metric list alone.

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

Deploy Server

Other Tools