Skip to main content
Glama

get_youtube_comments

Get comments from a YouTube video. Returns each comment's text, author, like count, reply count, date, a direct link, and up to 5 preview replies. Billed $0.005 per page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesYouTube video URL or 11-character video ID
pagesNoNumber of pages to fetch, 1-20 (default: 1). Each page returns up to ~100 comments.
sort_byNoSort order: most_recent (newest first) or relevance (default: relevance)relevance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pages / description
      Previous value: -"Number of pages to fetch, 1-10 (default: 1). Each page returns up to ~100 comments."New value: +"Number of pages to fetch, 1-20 (default: 1). Each page returns up to ~100 comments."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses a notable operational trait—billing $0.005 per page—and the limitation that only up to 5 preview replies are returned. This goes beyond a bare operation statement, though it does not discuss error cases, rate limits, or access prerequisites.

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 dense sentences with no filler. The primary action and return contents are front-loaded, and the cost caveat is placed at the end. Every clause earns its place.

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?

The absence of an output schema raises the burden on the description, and it does enumerate the returned fields and reply preview limit. It also tells the agent about cost, while the schema covers paging and sort options. Missing are the top-level response shape and any failure modes, but these are minor for a simple read tool.

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 baseline is 3 even without parameter details in the description. The description does not add new meaning for url, pages, or sort_by beyond what the schema already says; it only reinforces pagination through the per-page billing mention.

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?

The description opens with a specific verb and resource: 'Get comments from a YouTube video.' This clearly targets comments rather than video metadata, distinguishing it from youtube_video_details and search tools, and the listed return fields (text, author, likes, replies, date, link) make the exact purpose unambiguous.

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 description provides clear context: use this tool when you need the comment feed of a YouTube video, including preview replies. It does not explicitly name alternatives or state when not to use it, so it stops short of a 5, but the wording leaves little ambiguity against sibling comment tools for other platforms.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources