Skip to main content
Glama

get_video_analytics

Retrieve YouTube video analytics data including views, watch time, and engagement metrics for performance analysis.

Instructions

Get analytics for a specific video. Requires yt-analytics.readonly scope.

Args: video_id: The video ID to get analytics for start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format metrics: Comma-separated metrics (default: views,estimatedMinutesWatched,averageViewDuration,likes,dislikes,shares)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
video_idYes
start_dateYes
end_dateYes
metricsNoviews,estimatedMinutesWatched,averageViewDuration,likes,dislikes,shares

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the required OAuth scope ('yt-analytics.readonly'), which is valuable behavioral context. However, it doesn't mention rate limits, pagination, error conditions, or what the analytics output contains (though an output schema exists).

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?

The description is well-structured with a purpose statement followed by parameter details. Every sentence earns its place, though the metrics default list is quite long but necessary. It could be slightly more front-loaded by moving the scope requirement to a separate line.

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?

Given 4 parameters with 0% schema coverage and no annotations, the description does an excellent job explaining parameter semantics. The existence of an output schema means return values don't need description. However, it could better address behavioral aspects like error handling or data freshness.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate fully. It provides clear semantic explanations for all 4 parameters: what video_id represents, date format requirements for start_date and end_date, and detailed default values and format for metrics. This adds significant value beyond the bare schema.

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?

The description clearly states the specific action ('Get analytics') and resource ('for a specific video'), distinguishing it from sibling tools like get_channel_analytics (channel-level) and get_video_details (metadata). The verb 'Get' is precise and the scope is well-defined.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('Get analytics for a specific video') and mentions the required scope ('yt-analytics.readonly'), providing clear context. However, it doesn't explicitly contrast with alternatives like get_channel_analytics or specify when not to use it.

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/kpfitzgerald/youtube-mcp'

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