Skip to main content
Glama

analyze_engagement

Read-only

Analyze a YouTube user's liked videos, subscriptions, and playlists to identify top channels, categories, duration preferences, trends, and period-over-period engagement changes.

Instructions

FR-4 (OAuth): analyse the user's liked videos, subscriptions and playlists - top channels/categories, duration preferences, trends and period comparison. This is not watch history; app-computed values are labelled.

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": "analyze_engagement"
  }
}

Input Schema

NameRequiredDescriptionDefault
period_daysNoLength of each comparison period, 7-365 days

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds meaningful beyond-annotation context by signalling an OAuth requirement ('FR-4 (OAuth)') and by disclosing data provenance ('app-computed values are labelled'), which matters for trusting the returned analytics. It does not cover latency, rate limits, or behaviour when the library is empty.

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 compact sentences that front-load the scope and defer the exclusion, with no filler. The leading 'FR-4 (OAuth)' token is internal specification jargon and slightly opaque, though it does carry the auth signal efficiently.

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 and a single optional parameter, the description carries the return-value burden itself and does so: it enumerates the computed dimensions (top channels/categories, duration, trends, period comparison) and notes that derived values are labelled. An agent knows what it will get back and under what auth conditions.

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 period_days is already documented as 7-365 days with a default of 90. The description mentions 'period comparison' but does not clarify that period_days is applied per comparison window or what changing it affects in the output, so it adds only marginal meaning over 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?

Names a specific verb (analyse) and concrete resources (liked videos, subscriptions, playlists) plus the exact outputs computed (top channels/categories, duration preferences, trends, period comparison). The explicit 'This is not watch history' clause distinguishes it from a plausible near-neighbour operation before the agent opens any 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?

The description supplies a clear usage context (engagement analysis over the user's own library) and one explicit exclusion ('not watch history'), which tells the agent when not to reach for it. It stops short of naming a concrete alternative or stating prerequisites such as when a full analytics pass is warranted versus a simple listing.

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