Skip to main content
Glama

Get comments

get_comments
Read-onlyIdempotent

Get the top-level comments of a YouTube video, each with its like and reply count.

    Costs 1 credit per 100 comments returned, replies included, rounded up (minimum 1): up
    to 100 comments cost 1 credit, 101-200 cost 2. Videos with comments turned off cost
    nothing.

    Args:
        video_id: YouTube video ID (11 characters)
        limit: Number of comments to fetch (default 20, max 500)
        sort: "top" (default) or "new" (newest first)
        include_replies: Also fetch the replies of each comment (default false)
        replies_per_comment: With include_replies, most replies per comment (1-100,
            default 10)
    

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_id": "<video_id>"
    },
    "name": "get_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNotop
limitNo
video_idYes
include_repliesNo
replies_per_commentNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / include_replies
      Added value: +{
      +  "default": false,
      +  "title": "Include Replies",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / replies_per_comment
      Added value: +{
      +  "default": 10,
      +  "title": "Replies Per Comment",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the description's job is to add operational context — and it does so in detail. It discloses the exact credit cost model (1 credit per 100 comments including replies, rounded up, minimum 1), concrete examples (up to 100 = 1 credit, 101-200 = 2), and that videos with comments disabled cost nothing.

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?

Front-loaded with purpose, then cost, then a tidy Args block — a sensible ordering. Some redundancy exists in restating defaults and bounds that appear in the schema, but with 0% schema coverage that repetition is functional rather than wasteful; the cost examples could be trimmed slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description still usefully notes that each comment carries like and reply counts. Cost, limits, sort behavior, and reply nesting are all covered for a five-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the entire burden and meets it: every one of the five parameters is documented with type, default, and bounds (limit default 20 max 500; replies_per_comment 1-100 default 10; sort values "top"/"new"). The video_id format constraint (11 characters) is also supplied.

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 the top-level comments of a YouTube video") and adds scope detail that matters: top-level only, each with like and reply count. This distinguishes it from the sibling tools, none of which touch comment data.

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?

Usage context is implied through the parameter semantics (sort=top vs new, include_replies) rather than stated as when-to-use guidance. There are no sibling alternatives to route away from, but the description never explicitly says when this tool is the right choice or when to skip it.

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.