Skip to main content
Glama

yt_video_details

Read-onlyIdempotent

Retrieve owner metadata for one video ID, including private and scheduled titles, tags, and privacy status, plus owner-authorized retention drop-off cliffs, peer percentiles, and traffic sources.

Instructions

Fetch the owner's view of one video (title, description, tags, privacyStatus, publishAt; works for private and scheduled videos) plus owner-authorized YouTube Analytics retention diagnostics for a single 11-character video_id: 100-point elapsedVideoTimeRatio audience retention curve, exact MM:SS drop-off cliffs, relativeRetentionPerformance peer percentiles, and traffic source breakdown. Retention curve and traffic diagnostics require channel-owner OAuth2 (a studioDiagnosisError explains a missing scope). Public page metadata (title, views, likes) is scraped only when force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1. When words_or_script_path is provided, maps each retention drop-off cliff onto the exact spoken words at that timestamp.

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_id": "<video_id>"
    },
    "name": "yt_video_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYes11-character YouTube video or Short ID (e.g. 'I9c6W135VZk').
force_publicNoOpt in to scraping the public watch page for title/views/likes. Only set when the user asks for it.
words_or_script_pathNoOptional local filesystem path to a readable Whisper words.js or JSON word-timestamp file used to align retention drop-off cliffs with spoken words.

Output Schema

NameRequiredDescriptionDefault
tagsNo
titleNo
videoIdYes
publishAtNo
descriptionNo
privacyStatusNo
studioDiagnosisNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.10.0
    • addedOutput schema / properties / description
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / likeCount
      Removed value: -{
      -  "type": "integer"
      -}
    • addedOutput schema / properties / privacyStatus
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / publishAt
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tags
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / viewCount
      Removed value: -{
      -  "type": "integer"
      -}
  2. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / force_public
      Added value: +{
      +  "default": false,
      +  "description": "Opt in to scraping the public watch page for title/views/likes. Only set when the user asks for it.",
      +  "type": "boolean"
      +}
  3. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / video_id / description
      Previous value: -"11-character YouTube video ID (e.g. 'I9c6W135VZk')."New value: +"11-character YouTube video or Short ID (e.g. 'I9c6W135VZk')."
    • addedInput schema / properties / video_id / pattern
      Added value: +"^[A-Za-z0-9_-]{11}$"
    • changedInput schema / properties / words_or_script_path / description
      Previous value: -"Optional path to Whisper words.js / JSON timing file to map drop-off cliffs to exact spoken words."New value: +"Optional local filesystem path to a readable Whisper words.js or JSON word-timestamp file used to align retention drop-off cliffs with spoken words."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "likeCount": {
      +      "type": "integer"
      +    },
      +    "studioDiagnosis": {
      +      "type": "object"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "videoId": {
      +      "type": "string"
      +    },
      +    "viewCount": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "videoId"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is free. The description earns credit beyond that by disclosing the OAuth2 channel-owner requirement for retention diagnostics, a studioDiagnosisError for a missing scope, support for private and scheduled videos, and that public page scraping only occurs under an explicit opt-in.

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?

The opening clause front-loads the primary resource and enumerates returned fields, and each subsequent sentence covers a distinct mode or prerequisite. The first sentence is heavily loaded with parenthetical lists, which costs some readability, but no sentence is redundant.

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?

An output schema exists, so return-value explanation is not required, and the description still covers auth requirements, scraping gating, private/scheduled support, and error signaling. What remains thin is quota or rate-limit behavior and any explicit routing to the sibling tools that list videos at channel scale.

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 all three parameters are already documented in the schema, and the baseline is 3. The description reinforces the meaning of force_public as an opt-in scrape and words_or_script_path as cliff-to-word alignment, but adds little syntax or format detail beyond the schema and notably omits the 11-character constraint it mentions in prose only loosely.

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?

States a specific verb and resource: it fetches the owner's view of one video plus owner-authorized retention diagnostics, and enumerates the exact artifacts (100-point curve, MM:SS cliffs, peer percentiles, traffic sources). The scope is unambiguous, though it never contrasts itself with nearby siblings such as yt_list_videos or yt_channel_snapshot.

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?

It does give conditional guidance for two of the three parameters (force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1, and words_or_script_path for word alignment), which implies when those modes apply. However, it offers no explicit when-to-use versus sibling tools and no statement of when this tool is the wrong choice.

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