Skip to main content
Glama
goesByhc
by goesByhc

zhihu_comments

Retrieve paginated comments on Zhihu answers using an answer ID and login cookie. Enables extraction of comment data for analysis.

Instructions

获取知乎回答的评论(支持分页)。需要登录 cookie。

answer_id 来自 zhihu_search 结果中 type 为 "answer" 的 item 的 id 字段。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回条数 (默认 20)
offsetNo分页偏移 (默认 0,即第一页)
answer_idYes回答 ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses two behavioral traits: pagination support and the need for a login cookie. However, it does not describe behavior on missing/invalid cookies, error handling, rate limits, or pagination specifics beyond the schema. It adds some value but leaves gaps.

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?

The description is two sentences long, front-loaded with the core function and requirements, and every sentence provides useful context. No wasted words.

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?

The tool is relatively simple and the output schema exists, so return values need not be described. The description covers the essential prerequisites (cookie, answer_id source) and pagination capability. It doesn't mention error conditions or edge cases, but for a parameter-light tool with an output schema, this is sufficient.

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 description coverage is 100% (all three parameters have descriptions). The description adds extra semantic meaning by clarifying that answer_id comes from the 'id' field of type 'answer' items in zhihu_search results, which goes beyond the schema's generic '回答 ID'. This is a meaningful addition.

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 clearly states the tool's function: '获取知乎回答的评论' (fetch comments for a Zhihu answer), mentions pagination support, and distinguishes from sibling tools like zhihu_answer (which would return the answer itself) by focusing on comments. It also provides a source for the required answer_id.

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?

The description provides practical usage context: it states that a login cookie is required and that answer_id should originate from zhihu_search results (type 'answer'). This implicitly tells the agent when to use this tool (after obtaining an answer_id from search), but it does not explicitly mention alternatives or cases where this tool should not be used.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/goesByhc/cn-scraper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server