Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as HasData. If you published it, claim ownership there.

youtube_comments: GET /

hasdata_youtube_comments_getYoutubeComments
Read-only

Get YouTube Comments

Returns a page of top-level comments for a YouTube video or short identified by its 11-character videoId (v). Each comment carries its text, author (name, channel id, avatar, verified/creator flags), publish time, and raw + normalized like and reply counts. pagination carries the returned comment count, the video's total comment count (totalCount as shown, extractedTotalCount as a number), a nextPageToken, and a hasdataLink that calls this endpoint for the next page. To page through comments pass the nextPageToken from the response back as the nextPageToken parameter (the token is self-contained — v is not needed on continuation requests). Use to mine video comments for sentiment, feedback or moderation, or to build comment datasets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hasdata_youtube_comments_getYoutubeComments"
  }
}

Input Schema

NameRequiredDescriptionDefault
vNo11-character YouTube video ID — the value of the `v=` query parameter in a watch URL (e.g. `dQw4w9WgXcQ` for `https://www.youtube.com/watch?v=dQw4w9WgXcQ`). Required for the first page; omit it on continuation requests that pass `nextPageToken`.
glNoThe two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`.
hlNoThe two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`.
deviceTypeNoDevice type for the request.
nextPageTokenNoToken to fetch the next page of comments. Pass the `nextPageToken` from a previous response; omit it for the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses the key limitation that only top-level comments are returned, enumerates the per-comment payload (author flags, raw vs normalized like and reply counts), and explains the pagination envelope including `totalCount`, `extractedTotalCount` and `hasdataLink`. It also flags that the continuation token is self-contained so `v` can be omitted — a non-obvious behavior an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the pagination mechanics are clearly separated, but the middle paragraph is a dense run-on enumerating return fields, and the continuation rule is stated twice (once in the returns section, once in the usage section). Some of that space could be trimmed without loss.

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 does the necessary work of describing the return shape and pagination envelope, which is substantial for this tool. Remaining gaps are modest: comment ordering, whether replies are ever included, and any rate-limit or quota behavior are unstated, and `gl`/`hl`/`deviceType` go unmentioned.

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%, so `v`, `gl`, `hl`, `deviceType` and `nextPageToken` are already fully documented in the schema, including the first-page vs continuation rule. The description restates the `v`/`nextPageToken` interplay and adds nothing about the locale or device parameters, so baseline 3 is appropriate.

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 ('Returns a page of top-level `comments` for a YouTube video or short') and pins the identifier down to an 11-character `videoId`, which distinguishes it from video, channel, search and transcript siblings without ambiguity.

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?

Gives concrete use cases ('mine video comments for sentiment, feedback or moderation, or to build comment datasets') plus the operational rule for paging: pass `nextPageToken` back on continuation requests. It does not explicitly exclude or point to alternatives such as the transcript or video endpoints, so it stops short of full routing guidance.

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