Skip to main content
Glama
granitebps

YouTube MCP Server

by granitebps

get_video_comments

Fetch YouTube video comments and replies with text, author, likes, and dates; sort by relevance or time and paginate results.

Instructions

Get YouTube video comments with replies. Returns comment text, author, likes, and date. Supports sorting by 'relevance' (top comments) or 'time' (newest). Returns error if comments are disabled. Served by the provider selected with YT_PROVIDER.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination. Each page returns up to 20 comment threads. Use hasMore in the response to know if more pages exist.
videoYesYouTube video URL or video ID
sortByNoSort order: 'relevance' (top comments) or 'time' (newest first)relevance
maxResultsNoNumber of comment threads per page (1-20, YouTube returns ~20 per page)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
sortByYes
hasMoreYes
threadsYes
videoIdYes
threadCountYes
totalFetchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it does disclose meaningful traits: the returned fields (text, author, likes, date), sorting behavior, the error condition when comments are disabled, and the provider dependency. It omits auth/permission needs and rate-limit behavior, leaving some gaps.

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?

Four compact sentences with no filler, and the core purpose is front-loaded. The trailing YT_PROVIDER note is environmental context of marginal value but does not bloat the definition.

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 a full output schema and 100% parameter coverage, the description need not explain return values, and it still adds the useful error and provider notes. It is essentially complete for a read-only comment fetcher.

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 documents video, page, sortBy, and maxResults fully. The description's note on 'relevance' vs 'time' duplicates the enum documentation rather than adding new meaning, so the baseline 3 applies.

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 YouTube video comments with replies') and clearly differentiates from siblings like get_video_info and get_video_transcript, which retrieve different data about the same video.

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?

Describes the sorting options and the error case, giving implied context for use, but offers no explicit when-to-use vs. when-not guidance or routing to alternative tools. Siblings cover different resources, so little overlap exists to disambiguate.

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