Skip to main content
Glama

Episode-over-episode race, normalised by age

yt_episode_race
Read-onlyIdempotent

Compare episodes fairly by re-indexing daily metrics to days since publish, so equal-age episodes can be judged head-to-head. Returns cumulative curves and a leaderboard.

Instructions

The derived view: compare several videos on equal terms by re-indexing each one's daily numbers to days since its own publish date, so day 7 of a new episode sits next to day 7 of the last five. Raw totals cannot answer 'is this episode outperforming?' because an older video has simply had more days to accumulate; this removes that. Returns each video's cumulative curve by age plus a leaderboard at the oldest day all of them have reached, with each video's raw per-day API values returned alongside the running totals. Costs 1 YouTube Data API quota unit for publish dates (required — the normalisation is impossible without them) plus one Analytics query per video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricNoWhich metric to race on.views
video_idsYesTwo to ten video IDs to compare. Get them from yt_top_videos, or use your last N episode IDs.
as_of_dateNoTreat this date as 'today', YYYY-MM-DD. Defaults to yesterday (UTC), since YouTube Analytics lags. Pass it explicitly for a reproducible comparison.
window_daysNoHow many days after publish to track, 1-90. Each video's curve is truncated at its actual age — a 3-day-old video returns 4 points, not 28 padded ones.
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description discloses quota costs ('Costs 1 YouTube Data API quota unit for publish dates... plus one Analytics query per video') and the exact output structure ('cumulative curve... leaderboard... raw per-day API values'). This is rich behavioral context not present in annotations.

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?

Four sentences, each serving a distinct purpose: purpose, motivation, output, and cost. No filler or repetition of schema fields.

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

Completeness5/5

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

For a read-only comparison tool, the description covers the core value proposition, the output content, and resource costs. Without an output schema, the return description suffices to set expectations. The missing elements (e.g., exact leaderboard computation) are minor.

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?

The input schema already provides 100% description coverage for all four parameters, including detailed semantics for window_days and metric. The tool description adds conceptual framing (normalization by age) but not additional per-parameter syntax, so it neither supplements nor conflicts with the 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 opens with 'The derived view: compare several videos on equal terms' immediately stating the tool's function. It specifies the mechanism (re-indexing to days since publish) and distinguishes from raw totals, making it clearly distinct from sibling performance tools.

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 frames the use case with 'Raw totals cannot answer "is this episode outperforming?" because an older video has simply had more days to accumulate; this removes that.' This tells the agent when to use the tool (fair episode comparison) and when not (raw totals), though it does not name a specific sibling tool as an alternative.

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/conorbronsdon/yt-analytics-mcp'

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