Skip to main content
Glama

Get Impressions

get_impressions
Idempotent

Thumbnail impressions and click-through rate for your channel, which YouTube Analytics doesn't offer.

Instructions

Thumbnail impressions and click-through rate for your channel, which YouTube Analytics doesn't offer.

They come from YouTube's daily bulk reports. The first call asks YouTube to start making them: the first ones arrive within two days and cover the 30 days before. YouTube keeps daily reports for 60 days, those first 30 days for 30. ctr is clicks per impression: 0.05 is 5%. Uses the YouTube Reporting API; enable it in the same Google Cloud project.

Quota: no YouTube Data API units.

Input Schema

NameRequiredDescriptionDefault
byNoBreak the numbers down by day or by video. Omit for totals.
limitNoMaximum number of rows by video, most impressions first. 25 by default.
sinceNoFirst day, inclusive: 2026-01-01, or 90d / 4w before until. Defaults to 28 days before until.
untilNoLast day, inclusive: 2026-01-31, or 7d / 1w ago. Defaults to today.
videosNoOnly these videos (IDs or URLs).
my_channelNoWhich of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel.

Output Schema

NameRequiredDescriptionDefault
noteNo
rowsYes
sinceYes
untilYes
columnsYesDimension first (if any), then the metrics, in request order.
missing_daysYesDays YouTube has no report for: the last two, and any outside what it keeps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the non-obvious side effect that the first call initiates report generation, the latency (up to two days), data retention windows, quota behavior (no Data API units), and a required API enablement step. This is exactly the context annotations cannot carry, and readOnlyHint=false is consistent with the described side effect.

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?

Front-loaded with the data it returns and the Analytics contrast, then the setup caveat. Dense but nearly every clause carries information; the retention sentence ('keeps daily reports for 60 days, those first 30 days for 30') is slightly awkward to parse.

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?

Covers setup, first-call latency, date-range bounds, quota, and metric units, and an output schema exists to describe return values. Nothing essential to calling it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so parameters are already documented, but the description adds meaningful constraints beyond the schema: 60-day report retention and the 30-day limit on the initial window directly bound what `since`/`until` can return, and the ctr explanation (0.05 = 5%) clarifies the output unit.

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?

States a concrete resource (thumbnail impressions and click-through rate) and explicitly positions it against the closest sibling, get_analytics, by noting YouTube Analytics doesn't offer this data. An agent can distinguish it from get_analytics without opening either schema.

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?

Explains the key operational context: the first call triggers report generation, results take up to two days, and the YouTube Reporting API must be enabled. It implies selection versus get_analytics but never states an explicit 'use get_analytics instead when you want views/revenue' rule.

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