Skip to main content
Glama
YouTubeMCP
by imrees

Get channel analytics

get_channel_analytics
Read-onlyIdempotent

Fetch YouTube channel analytics for a chosen date range, including views, watch time, subscribers, likes, comments, shares, and traffic sources. Use presets or custom dates to review performance.

Instructions

Channel views, watch time, average view duration, subscribers gained/lost, likes, comments, shares and traffic sources for a date range. Optional feature: needs analytics authorization (see README).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_channel_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetNo'last_7_days', 'last_28_days' (default) or 'last_90_days'. Ignored if dates are given.last_28_days
end_dateNoCustom end date YYYY-MM-DD (Pacific Time).
start_dateNoCustom start date YYYY-MM-DD (Pacific Time).
include_dailyNoAdd a per-day breakdown.
include_traffic_sourcesNoAdd views by traffic source.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), so the description only needs to add beyond that. It does add one genuinely useful fact — the tool needs analytics authorization and is framed as an 'optional feature' — but it defers the detail to a README and says nothing about quotas, data latency, or how empty ranges behave.

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?

Two short sentences with no filler, and the metric list is dense but scannable. The second sentence is awkwardly framed — 'Optional feature: needs analytics authorization' pairs an optionality claim with a hard requirement — which slightly undercuts its clarity.

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?

With a full output schema, fully documented parameters, and safety annotations, the structured fields carry most of the load, so the description only needs to cover routing and caveats. The auth caveat is present, but the absence of any sibling routing guidance and of quota/latency expectations leaves a real gap for an analytics call that is typically quota-limited.

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%: preset values, date format with Pacific Time, and the mutual exclusion of dates vs preset are all documented in the schema. The description's 'for a date range' adds no syntax or precedence detail beyond that, so the baseline of 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 enumerates exactly which metrics are returned (views, watch time, average view duration, subscriber deltas, likes, comments, shares, traffic sources) over a date range, so an agent knows the resource and payload shape. It stops short of a clean verb+resource statement and never names get_video_analytics as the video-level counterpart, leaving sibling differentiation to inference.

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; nothing tells an agent to prefer get_video_analytics for per-video metrics or get_channel_info for non-analytics data. The only contextual note is an authorization prerequisite, which is a precondition rather than routing guidance.

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