Skip to main content
Glama

youtube_comment_by_id

Destructive

采集 YouTube 视频评论(comment)与评论列表,含点赞、分享等互动数据 采集方式:通过Video ID采集 示例参数:video_id=8RePenzQH80;load_replies=10;num_of_comments=Top comments;num_of_comments=10 必填参数:load_replies、num_of_comments、sort_by、video_id

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": {
      "load_replies": "<load_replies>",
      "num_of_comments": "<num_of_comments>",
      "sort_by": "<sort_by>",
      "video_id": "<video_id>"
    },
    "name": "youtube_comment_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
sort_byYes排序方式:该参数用于指定采集评论时,评论的排序方式;可选值:热门评论(Top comments)、最新(Newest first)
video_idYes视频唯一ID:该参数用于指定待采集的 YouTube 视频的唯一 ID。
file_nameNoBuilder 输出文件名,不传时使用 {{TasksID}}。{{TasksID}}
load_repliesYes加载回复:该参数用于指定页面加载回复时用到的时间。
num_of_commentsYes评论数量:该参数用于指定采集评论的数量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds no behavioral context beyond that: it never explains that this is a browser-automation scrape (hinted only indirectly by load_replies), whether runs consume quota, how long a job takes, or what the destructive flag actually means here. The mention of '含点赞、分享等互动数据' describes payload content, not behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and line-structured, with the purpose front-loaded. But the trailing '必填参数' line merely repeats the schema's required array, and the example block contains an incorrect key/value pairing, so not every line earns its place.

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

Completeness3/5

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

For a five-parameter scrape tool with no output schema, the definition covers what is collected and how it is keyed, but omits the return shape (comment fields, pagination, where file_name output lands) and any notion of run cost or limits. The destructive/open-world annotations make the missing side-effect context more conspicuous. Adequate to invoke, thin on what to expect.

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%, so the schema already documents all five parameters, establishing a baseline of 3. The description attempts to add value with sample values (video_id=8RePenzQH80; load_replies=10), which usefully shows load_replies is numeric despite being typed string. However, the sample 'num_of_comments=Top comments' mislabels a sort_by value as a comment count, which actively muddies parameter 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 first line states a specific verb and resource: collect YouTube video comments plus the comment list, including likes and shares engagement data. It is clearly distinct from transcript/video/profile siblings by the 'comment' resource, though it never names an alternative explicitly. The purpose is unambiguous, only the sibling routing is left implicit.

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?

The only usage information is '采集方式:通过Video ID采集', which restates the required input rather than telling the agent when to choose this tool. There is no guidance on when not to use it, no prerequisite (auth/credits), and no comparison to the many other *_comment_by_url siblings. An agent must infer selection from the name alone.

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