Skip to main content
Glama

Pipefetch

YouTube comments

youtube_comments
Read-only

Get the top or the newest comments of a public YouTube video, with likes, reply counts and authors' public names. Returns at most 100 top-level comments. Costs 1 Pipefetch credit per started 20 comments; a video with comments turned off costs 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": {
      "video": "<video>"
    },
    "name": "youtube_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoTop comments first, or newest first. Default "top".
limitNoHow many comments to return: 1 to 100. Default 20. Every started 20 cost 1 credit.
videoYesA YouTube video ID or any YouTube video URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the credit cost model (1 credit per started 20 comments), the hard result cap of 100 top-level comments, and the free-of-charge behavior when comments are disabled. Those are exactly the operational traits an agent cannot infer from structured fields.

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 tight sentences, front-loaded with what is returned, then the cap, then the cost model. Every clause carries decision-relevant information and none of it repeats the annotations verbatim.

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?

With no output schema, the description still characterizes the return payload (comments with likes, reply counts, author names), states the volume ceiling, and covers pricing and the disabled-comments case. Nothing an agent needs to call this correctly or predict its cost is absent.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds meaning beyond it by clarifying that results are top-level comments only (not replies) and by tying the limit to the credit cost curve. The 'public video' constraint also implicitly bounds the accepted video identifier values.

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?

The description opens with a specific verb and resource ('Get the top or the newest comments of a public YouTube video') and enumerates the returned fields (likes, reply counts, author public names). The resource scoping clearly separates it from siblings like youtube_video, youtube_transcript and youtube_search without needing to name 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?

It establishes context for use: public videos only, sortable top vs newest, and the notable edge case that comments turned off yields nothing and costs nothing. What is missing is explicit routing guidance against alternatives (e.g., when to prefer youtube_transcript or youtube_video), so it lands 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.