Skip to main content
Glama

Get YouTube Video Info

get_youtube_video_info
Read-only

Retrieve YouTube video metadata and transcript availability, optionally summarize the transcript, and save the details to a markdown file for later use.

Instructions

Get YouTube video metadata and transcript availability. Use output_path to persist the video info to disk as markdown and receive a slim response.

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_url": "<video_url>"
    },
    "name": "get_youtube_video_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
timezoneNoIANA timezone name (e.g. 'Asia/Tokyo', 'America/New_York') used to convert the video's publish time, returned under 'published_at'. When unspecified, defaults to 'UTC' (the original YouTube offset is always kept in published_at.original).UTC
llm_modelNoLLM model
overwriteNoOverwrite an existing output file at output_path. Defaults to False.
video_urlYesYouTube video URL
max_tokensNoToken limit for summarization
output_pathNoAbsolute file path (auto .md extension) to persist the video info as markdown: channel, publish time, duration, views, description, transcript languages and, with summarize_transcript=True, the transcript summary. When set, the response is slimmed to metadata+file path.
llm_providerNoLLM provider
summary_lengthNo'short'|'medium'|'long'medium
include_timestampsNoInclude timestamps
summarize_transcriptNoSummarize transcript
include_content_in_responseNoWhen True (with output_path set), also include the rendered markdown in the response as content. Defaults to False.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / include_content_in_response / description
      Previous value: -"When True (with output_path set), also include the full transcript in the response. Defaults to False."New value: +"When True (with output_path set), also include the rendered markdown in the response as content. Defaults to False."
    • changedInput schema / properties / output_path / description
      Previous value: -"Absolute file path (auto .md extension) to persist the full video info + transcript as markdown. When set, the response is slimmed to metadata+file path."New value: +"Absolute file path (auto .md extension) to persist the video info as markdown: channel, publish time, duration, views, description, transcript languages and, with summarize_transcript=True, the transcript summary. When set, the response is slimmed to metadata+file path."
  2. Changed1 schema field changedv0.4.2
    • addedInput schema / properties / timezone
      Added value: +{
      +  "default": "UTC",
      +  "description": "IANA timezone name (e.g. 'Asia/Tokyo', 'America/New_York') used to convert the video's publish time, returned under 'published_at'. When unspecified, defaults to 'UTC' (the original YouTube offset is always kept in published_at.original).",
      +  "type": "string"
      +}
  3. Addedv0.3.2
  4. Removedv0.1.6
  5. First observedv0.1.7

TDQS

A3.6/5.0
Behavior4/5

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

readOnlyHint=true covers the safety profile, and the description adds genuinely non-obvious behavior beyond it: that setting output_path writes a markdown file and deliberately slims the response, with an implied overwrite guard documented in the schema. Minor tension exists between readOnlyHint and writing a file to disk, but the file write is explicitly disclosed by the tool rather than contradicted.

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?

Two sentences, front-loaded with the core purpose and followed immediately by the one behavioral tip worth surfacing. No filler, though 'video info' is slightly informal compared with the metadata phrasing used in the same sentence.

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?

With 11 parameters, an output schema, and annotation coverage, the description is adequate but thin: it never mentions that the tool can summarize the transcript via an LLM, despite that being a major capability driven by four parameters. The output schema relieves it of explaining return values, and the disk-persistence behavior is covered, so it is close to sufficient for correct invocation.

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 the schema already explains every parameter, including timezone, summarize_transcript, and the overwrite flag. The description adds only the response-shape consequence of output_path ('slim response'), and says nothing about the summarization-related parameters, which is the correct baseline for a fully documented schema.

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 ('Get YouTube video metadata and transcript availability'), which is clearly distinct in kind from the metadata-only siblings. It does not name extract_youtube_transcript or batch_extract_youtube_transcripts, so an agent must still infer that this tool reports availability rather than fetching the transcript itself, but the wording ('availability') points that way.

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 second sentence gives one concrete usage pattern: set output_path to persist to disk and get a slim response. There is no explicit when-to-use versus extract_youtube_transcript, no mention of when the summarization path is appropriate, and no exclusions. Guidance is implied rather than stated.

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