Skip to main content
Glama
YouTube & Shorts Analytics MCP Server

YouTube & Shorts Analytics MCP Server

by ara0440-wq

get_shorts_hook

Extract the opening seconds of a YouTube video or Short to analyze hook retention. Specify the URL and duration to capture the critical intro segment.

Instructions

Extract the opening seconds (hook) of a YouTube video or Short for retention analysis.

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": {
      "url": "<url>"
    },
    "name": "get_shorts_hook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video/Shorts URL or video ID
secondsNoNumber of opening seconds to extract (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says nothing about what is actually returned (a media file, a URL, frames, or timestamps), whether the source is downloaded or merely referenced, or whether there are cost/latency limits. Only the core operation — take the first N seconds — is disclosed.

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?

A single front-loaded sentence with the operation first and the purpose last, with no redundant or filler wording.

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

Completeness3/5

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

For a simple two-parameter tool with full schema coverage, the description covers the input side adequately. However, with no output schema and no annotations, the return format and any processing constraints are left entirely unstated, which is a real gap for a media-extraction tool.

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 both `url` (URL or video ID) and `seconds` (default 10, exclusiveMinimum 0) are already documented. The description adds only the framing that the seconds are the "hook" of the opening; otherwise it does not enrich parameter meaning beyond the schema, so 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 names a specific verb ("Extract") and a specific resource ("the opening seconds (hook) of a YouTube video or Short"), plus the intent ("retention analysis"). That is enough to separate it from the sibling tools (comments, metadata, transcript), though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "for retention analysis" implies a use case, and "opening seconds" implies a clip-extraction task rather than the full transcript or metadata tools. There is no explicit when-to-use/when-not-to-use statement or named alternative, so guidance is only implied.

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