Skip to main content
Glama

query_channel_analytics

Query YouTube Analytics for your channel to obtain views, watch time, retention, and traffic source reports. Specify date range and optionally group by dimensions for detailed analysis.

Instructions

Query YouTube Analytics for the authenticated channel. Returns tabular data — useful for views/watch-time/retention/traffic-source reports. Date-ranged and optionally grouped by dimensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYesYYYY-MM-DD (inclusive)
end_dateYesYYYY-MM-DD (inclusive)
metricsNoComma-separated metric names (see YouTube Analytics API). Defaults cover the most common creator-dashboard stats.views,estimatedMinutesWatched,averageViewDuration,subscribersGained
dimensionsNoComma-separated dimensions, e.g. 'day', 'video', 'country'. Omit for channel totals.
filtersNoFilter expression, e.g. 'video==VIDEO_ID' to scope to one video, or 'country==US'.
sortNoSort spec, e.g. '-views' for descending by views
max_resultsNo
Behavior2/5

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

No annotations are provided, so the description must convey all behavioral traits. It mentions the tool is for the authenticated channel and returns tabular data, but does not disclose auth requirements, rate limits, destructive potential, or return format details. This is insufficient for a 7-parameter tool.

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?

The description is two short sentences with no filler. The first sentence states the core purpose, the second adds key behaviors (tabular output, date range, grouping). Every word earns its place.

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?

Given 7 parameters and no output schema or annotations, the description is adequate but incomplete. It covers purpose and basic usage, but omits return format, pagination, error handling, and detailed behavioral context.

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 86% (high), so baseline is 3. The description adds 'Date-ranged and optionally grouped by dimensions', which repeats schema info. No additional parameter semantics beyond the schema are provided.

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 clearly states 'Query YouTube Analytics for the authenticated channel', specifying the verb and resource. It differentiates from siblings like 'get_shorts_analytics' by focusing on channel-level analytics, but does not explicitly contrast with siblings.

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 description lists common use cases ('views/watch-time/retention/traffic-source reports'), implying when to use the tool. However, it offers no guidance on when not to use it, nor does it mention alternatives (e.g., get_shorts_analytics for shorts).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miller-joe/youtube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server