Skip to main content
Glama

YouTube Video Details

youtube_get_video_details

Retrieve public metadata for a YouTube video—duration, tags, caption availability, and engagement counts—to analyze and cite content. Requires a YouTube API key.

Instructions

Get public metadata, duration, tags, caption availability, and engagement counts. Requires YOUTUBE_API_KEY.

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": "<video>"
    },
    "name": "youtube_get_video_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two useful facts: results are limited to 'public' metadata and an API key is required. It does not say what happens for private, deleted, or region-blocked videos, whether the call consumes quota (relevant given a quota_status sibling), or whether errors are raised or returned empty.

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?

Two sentences, front-loaded with the returned data first and the prerequisite second, with no filler or redundant restatement of the tool name.

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 one-parameter read tool with no output schema, listing the returned fields is genuinely helpful. However, the missing input format for 'video' and the absence of failure-mode behavior leave gaps that the description alone would need to close given zero annotations and zero schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'video' has 0% schema description coverage, so the description must explain the expected input, but it gives no indication whether this is a video ID, a URL, or a title. That ambiguity is the one parameter the agent must get right, and the description leaves it unresolved.

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 retrieval verb and enumerates the resource contents (metadata, duration, tags, caption availability, engagement counts), which distinguishes it from siblings like youtube_get_transcript or youtube_analyze_video. It never explicitly says 'video' as the resource noun or names a sibling, but the field list makes the scope clear enough to select correctly.

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

Usage Guidelines2/5

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

There is no statement of when to use this over youtube_analyze_video, youtube_get_transcript, or youtube_search. The only guidance is a prerequisite ('Requires YOUTUBE_API_KEY'), which tells the agent about setup, not tool selection.

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