Skip to main content
Glama
YouTube Studio MCP

YouTube Studio MCP

by nelsonrogers

Media kit data

get_media_kit_data
Read-onlyIdempotent

Assembles a stable JSON media kit snapshot from YouTube Studio analytics, covering channel profile, period performance, audience, uploads, top videos, and traffic sources for sponsor decks.

Instructions

Everything a creator media kit / sponsor deck needs, as one stable JSON snapshot (schema_version 1, snake_case, *_pct 0-100, *_s seconds): channel profile, period performance vs previous period, Shorts vs long-form performance, impressions funnel, daily and monthly trends, audience age/gender/countries/devices, recent uploads with thumbnails, top videos and traffic sources. Anything YouTube can't provide is null and explained in unavailable instead of failing the call.

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_media_kit_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoNamed date range, Studio-style. Rolling ranges end at the latest complete day of data (analytics lag ~2-3 days; dates are US Pacific). Ignored when start_date is set.last_28_days
save_toNoAlso save the snapshot as JSON (bare filename -> output directory).
end_dateNoCustom range end, YYYY-MM-DD (inclusive). Defaults to the latest complete day.
start_dateNoCustom range start, YYYY-MM-DD. Overrides `period`.
trend_monthsNoMonths in monthly_trend.
top_countriesNoCountries to include.
recent_uploadsNoRecent long-form videos and Shorts to list and average (each).
include_revenueNoAdd revenue/RPM to performance (most media kits don't show it).
min_upload_age_daysNoSkip uploads younger than this (their views are still growing).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a stable versioned output contract (schema_version 1, snake_case, *_pct 0-100, *_s seconds) and, importantly, graceful degradation where unsupported YouTube metrics return null and are explained in `unavailable` instead of erroring. It stops short of 5 by saying nothing about cost/latency of this large aggregate call or any auth requirements.

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 sentences, front-loaded with the tool's purpose and followed immediately by the output contract and null-handling rule. The long enumeration of sections is dense but each item earns its place by telling the agent what it will receive; minor cost is that the section list reads as a run-on.

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?

With nine optional parameters, full schema coverage, annotations, and an output schema, the description is nearly complete: it explains the content of the return value and the null/`unavailable` behavior that an agent most needs to interpret results. It omits any note about authentication prerequisites or the size/latency tradeoff of requesting a full snapshot.

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%, so the schema already documents all nine parameters in detail (period semantics, date overrides, trend_months, top_countries, include_revenue, min_upload_age_days). The description adds only the implicit notion of "vs previous period" and does not clarify parameter interactions such as start_date overriding period beyond what the schema states, so the baseline 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 concretely enumerates what the snapshot contains (channel profile, period performance vs previous period, Shorts vs long-form, impressions funnel, trends, audience demographics, uploads, top videos, traffic sources), which lets an agent recognize it as a bundled aggregate rather than a single-metric tool. It falls short of 5 because it never explicitly contrasts itself with the granular siblings (get_audience_breakdown, get_impressions, get_traffic_sources) by name, leaving the bundling relationship implicit.

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?

"Everything a creator media kit / sponsor deck needs" gives a clear, concrete use context that tells the agent when this tool is the right choice. There is no explicit when-not guidance (e.g., that single-metric siblings are cheaper if only one section is needed) and no stated prerequisites such as authentication or required scopes.

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