Skip to main content
Glama

Get YouTube retention

get_youtube_retention
Read-only

Audience retention for 1 to 5 published YouTube posts, read live from YouTube, so you can compare how well videos hold viewers. Per post returns points (the curve: ratio = position in the video 0-1, watch_ratio = share of viewers still watching, can pass 1 on rewatches, relative_performance = how this point compares with YouTube videos of similar length, 0-1 where 0.5 is typical), duration_seconds, and summary with retention_25, retention_50, retention_end (percent still watching) and vs_similar_videos (Above / Like / Below similar videos). Posts YouTube has no retention for yet (usually under a few dozen views) come back with an error. Other YouTube numbers (impressions, impressions click-through rate, traffic sources, engagement per engaged view) are in get_post_analytics under platform_metrics.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "video_post_ids": "<video_post_ids>"
    },
    "name": "get_youtube_retention"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_post_idsYesvideo_posts.id values of published YouTube posts (from list_video_uploads or get_workspace_analytics).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety and live-external-read profile is covered structurally. The description does add real value beyond that: it discloses the failure mode (posts with no retention yet, usually under a few dozen views, return an `error`) and explains value semantics like watch_ratio passing 1 on rewatches. It stops short of anything on latency, quota, or auth, which for an open-world live fetch keeps it at 3.

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 core action and scope, followed by the return shape and then the sibling routing — a sensible order. The return-value sentence is dense but every field named earns its place given there is no output schema; the only mild redundancy is repeating the 1–5 post cap already enforced by the schema.

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?

With no output schema, the description takes on the return-value documentation and does it thoroughly — `points` fields and their scales, `duration_seconds`, the `summary` thresholds, plus the error case for low-view posts. Combined with annotations covering the read-only/external profile, an agent has enough to call this correctly and interpret results.

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 coverage is 100% with a single, fully described parameter, so the schema carries the parameter burden and baseline 3 applies. The description restates the 1–5 bound and narrows it to *published* YouTube posts, which adds a small semantic constraint but no new syntax or sourcing detail beyond 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?

States a specific verb and resource (audience retention for 1–5 published YouTube posts), the data source (read live from YouTube), and the intent (compare how well videos hold viewers). It also explicitly routes other YouTube metrics to get_post_analytics, so the agent can separate it from the nearest sibling 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?

Gives clear selection context: use this for retention curves, and use get_post_analytics under `platform_metrics` for impressions, CTR, traffic sources, and engagement per engaged view. What's missing is a when-not clause for the counting/eligibility limit beyond the note that low-view posts error out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.