Skip to main content
Glama

YouTube Comments API

youtube_comment_extractor
Read-onlyIdempotent

Extract top comments with likes and replies from any YouTube video link or ID to analyze audience reaction. Paginate through comment pages when you need more than the first page.

Instructions

Read the top comments of any YouTube video with likes and replies. Costs 1 credit per successful call. This page shows the first page of top comments, not every comment on the video. Videos with comments turned off return nothing.

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": {
      "url": "<url>"
    },
    "name": "youtube_comment_extractor"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesYouTube video link. Works with watch, youtu.be, Shorts and embed links, or a bare video ID.
next_page_tokenNoGet the next page of comments. Pass the pagination.next_page_token from the previous answer, unchanged. Each page is one call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses billing (1 credit per successful call), the result-set limit (first page only, not all comments), and an empty-result edge case (comments disabled). It does not mention ordering of comments, rate limits, or what happens to credits on failure, keeping it short of a 5.

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 short sentences, each carrying distinct information: capability, cost, and result scope/edge case. Capability is front-loaded and there is no redundant or filler wording.

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?

For a two-parameter read tool with no output schema, the description covers cost, pagination scope, and the empty-result case, which is most of what an agent needs before calling. It could still say more about the shape of returned comments (e.g., reply threading depth) since no output schema exists.

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%, with the url parameter already documenting accepted link formats and next_page_token documenting the pass-through pattern. The description's mention of "first page" reinforces pagination semantics but adds no format or constraint detail beyond the schema, so 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?

The description gives a specific verb and resource ("Read the top comments of any YouTube video") and clarifies the payload includes likes and replies. It scopes the result to the first page rather than every comment, but it never contrasts itself with adjacent tools like youtube_transcript, so it stops short of full sibling differentiation.

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 is implied by the phrasing (any YouTube video, works with watch/Shorts/embed links per the schema), and the note about comments being turned off gives a when-not condition. However, it offers no explicit guidance on choosing this over other YouTube tools or on when to paginate versus take just the first page.

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