Skip to main content
Glama

get_video_metadata

Fetch YouTube video metadata, including title, description, statistics, and duration, from a video ID or URL for analysis.

Instructions

Get metadata for a YouTube video (title, description, stats, duration, etc.).

Args: video_id: YouTube video ID (e.g. "dQw4w9WgXcQ") or a video URL

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

Input Schema

NameRequiredDescriptionDefault
video_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the disclosure burden. It does tell the agent the return contents and accepts both an ID and a URL, but says nothing about permissions/API keys, quota limits, or failure modes such as private, deleted, or region-blocked videos.

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?

One short front-loaded sentence plus a compact Args block; nothing is redundant. The trailing "etc." is the only loose wording, leaving the exact field set slightly open.

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?

For a one-parameter read tool with an output schema, this covers what an agent needs to decide and call it correctly. The remaining gap is operational behavior (auth, limits, error cases), which is minor but not covered elsewhere.

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 0%, so the single parameter is undocumented in structured fields. The description compensates by giving an example ID and noting that a full video URL is also accepted — useful, but not the only ambiguity such a parameter could carry (e.g. whether playlist or timestamped URLs are acceptable).

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?

Names a specific verb and resource ("Get metadata for a YouTube video") and enumerates what comes back (title, description, stats, duration), which separates it from transcript/comment/summarize siblings. It stops short of naming an alternative tool for overlapping needs, so it's clear but not fully differentiated.

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?

Usage is only implied by the resource: fetch this when you need descriptive/statistical data about one video. There is no explicit when-to-use vs. when-not statement, no mention of how this relates to get_transcript or summarize_video, and no guidance on batch use for multiple videos.

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