Skip to main content
Glama

Get YouTube video metadata

get_video_metadata
Read-onlyIdempotent

Retrieve a YouTube video’s title, channel, length, views, publish date, keywords, and truncated description. Use it for video details, not transcript content.

Instructions

Get a YouTube video's metadata as text: title, channel name and ID, length, view count, publish date, keywords and description (description cut at 2,000 characters). Does not include the transcript; use get_transcript for what is said. Counts as one request against the user's plan.

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

Input Schema

NameRequiredDescriptionDefault
videoYesThe YouTube video. Pass the 11-character video ID (e.g. dQw4w9WgXcQ) or a YouTube video URL: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/shorts/ID, youtube.com/embed/ID, youtube.com/live/ID (m.youtube.com and music.youtube.com work too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered by structured data. The description adds two genuinely useful behavioral facts the annotations cannot convey: the description field is truncated at 2,000 characters, and each call consumes one request against the user's plan (quota cost). It says nothing about failure modes for invalid/private videos, so beyond the quota and truncation notes it is adequate rather than rich.

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?

Three tight sentences, front-loaded with the returned field list, then the boundary case, then the cost. Every sentence carries information. Slightly compressed to the point that the quota note reads as a trailing addendum rather than integrated guidance.

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?

With no output schema, the description correctly compensates by enumerating return fields and noting the description truncation limit. For a single-parameter read tool with full annotation coverage, only minor gaps remain, chiefly error behavior for unavailable or private videos.

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 100%; the schema already spells out the 11-character ID format and all accepted URL forms (watch, youtu.be, shorts, embed, live, m./music. subdomains). The description adds no parameter-level meaning beyond that. Baseline 3 applies when the schema does all the work.

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?

States a specific verb and resource ("Get a YouTube video's metadata") and enumerates what comes back: title, channel name and ID, length, view count, publish date, keywords, description. It also explicitly contrasts itself with get_transcript, so the agent can distinguish it from a sibling without opening 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 exclusion is explicit: "Does not include the transcript; use get_transcript for what is said." That routes the agent away from this tool when transcript content is wanted. It gives no positive trigger conditions (e.g. when to prefer this over get_channel_metadata), so it falls short of full when/when-not coverage.

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