Skip to main content
Glama

Get YouTube comments

get_comments
Read-only

Comments on a YouTube video with author, likes, reply count, and pinned/hearted flags. Pass nextCursor back as cursor for more, or a comment's repliesCursor as replies_to for its replies. Costs 1 credit per call.

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

Input Schema

NameRequiredDescriptionDefault
urlNoYouTube URL or video ID (not needed with cursor or replies_to)
sortNotop or newtop
limitNoMaximum comments to return
cursorNonextCursor from a previous call
replies_toNoA comment's repliesCursor, to list its replies

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so safety is covered. The description adds a genuinely useful non-schema fact — the 1-credit-per-call cost — plus a sketch of returned fields, but says nothing about rate limits, ordering behavior when sort is defaulted, or how replies are represented.

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?

Three sentences, front-loaded with what is returned, then the pagination mechanics, then the cost. No filler and nothing important is buried.

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 usefully names the return fields, explains both pagination paths, and discloses cost — enough to call the tool correctly with five optional params. Minor gaps remain around reply nesting and default ordering, but nothing hindering a 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 coverage is 100% and the schema already documents url, sort, limit, cursor, and replies_to, including that url is unneeded with cursor/replies_to. The description restates the cursor/repliesCursor chaining relationship in narrative form, which aids comprehension but adds little meaning beyond the schema — the baseline 3 applies.

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+resource (comments on a YouTube video) and even enumerates the returned fields (author, likes, reply count, pinned/hearted flags). It is clearly distinct from siblings like get_video or get_transcript by resource, though it never explicitly contrasts itself with them.

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 operational guidance: pass nextCursor back as cursor to page, or a comment's repliesCursor as replies_to to descend into replies, and notes the url is not needed in those cases. It does not state when to prefer this over alternatives or any prerequisites/exclusions, so it stops short of a 5.

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