Skip to main content
Glama

get_video_comments

Fetch comments from a YouTube video by ID or URL, with options to set result count and sort by relevance or newest first.

Instructions

Get comments on a YouTube video.

Args: video_id: YouTube video ID or a video URL max_results: Maximum comments to return (1-100, default: 20) order: "relevance" (default) or "time" (newest first)

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_video_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNorelevance
video_idYes
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the ordering options and the max_results bounds, but says nothing about pagination (whether more than 100 comments can be retrieved), whether replies to comments are included, quota/rate-limit costs, or what happens on disabled comments or private videos.

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?

The purpose statement is front-loaded and the Args list is compact with no filler. The docstring-style blocks are slightly ceremonial for three short parameters, but nothing is wasteful.

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 an output schema present, the description needn't describe return values, and it covers all three parameters thoroughly. The notable remaining gap is pagination: with a hard cap of 100 and no token parameter, an agent cannot tell how to retrieve more comments.

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%, and the Args block fully compensates: video_id accepts either an ID or a URL, max_results is bounded to 1-100 with a default of 20, and order's two enum values are spelled out with \"time\" clarified as newest first. The enum values and the numeric bounds are absent from the schema, so this text adds genuine meaning.

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?

The opening line names a specific verb and resource ("Get comments on a YouTube video"), which is unambiguous. It does not explicitly contrast with siblings like get_transcript or get_video_metadata, but the resource boundary is clear enough that an agent can distinguish them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus alternatives (e.g., get_transcript for spoken content), and no preconditions such as comments being enabled or the video being accessible. Usage is only implied by the tool's name and one-line purpose.

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