Skip to main content
Glama

Ykb Comments

ykb_comments

Fetch popular comments for a question, sorted by likes, heat, replies, or newest, while caching your liked or posted comments locally.

Instructions

获取某题的热门评论。sort: likes=最多点赞, hot=最高热度, replies=最多回复, newest=最新发布。列表中本人已点赞/已发表的评论会自动归档到本地缓存。题目元数据优先从缓存解析,必要时显式传 identity_id/subject_id/app_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": {
      "question_id": "<question_id>"
    },
    "name": "ykb_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNolikes
app_idNo
subject_idNo
identity_idNo
question_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose two non-obvious behaviors: comments the caller has already liked or authored get auto-archived into a local cache, and question metadata is resolved from cache first with explicit identity_id/subject_id/app_id as the fallback. Those are real side effects / resolution-order details an agent could not get from the schema. It still says nothing about auth requirements, pagination behavior, or what happens when the cache lookup fails.

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 text is front-loaded with the purpose, then packs sort semantics, cache side effect and metadata-resolution order into a short telegraphic block with no filler sentences. The trade-off is terseness: the fragments around identity_id/subject_id/app_id read as compressed notes rather than prose, which costs a little clarity but wastes no space.

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?

An output schema exists, so the description need not explain return shape, and for a read-oriented listing tool with a disclosed local-cache side effect it covers the essentials: what it returns, how to pick sort, and how IDs are resolved. The remaining gap is pagination and precondition/error behavior, which makes it good but not exhaustive.

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 0%, so the description must compensate, and it does so for the most opaque parameter: sort is an undeclared free-form string in the schema but the description enumerates all four accepted values with their meanings. It also assigns a purpose to identity_id/subject_id/app_id (metadata resolution fallback). However, page is completely unexplained (no page size, no ordering, no first-page semantics) and question_id is taken for granted, so half the parameters still carry no added 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 description opens with a specific verb and resource ("获取某题的热门评论" – fetch the popular comments of a given question), which tells an agent exactly what the tool returns and what the required question_id scopes it to. It does not, however, name any sibling (e.g. ykb_my_comments or ykb_my_praises) that would be the alternative for a user-scoped listing, so the differentiation is left to inference. The title "Ykb Comments" adds nothing that the description does not already say.

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?

It gives concrete selection guidance for the sort parameter (likes/hot/replies/newest) and a conditional hint about when to supply identity_id/subject_id/app_id ("必要时显式传"). That is genuinely useful steering. What is missing is any statement of when NOT to use this tool or which sibling to use for the user's own comments vs. someone else's, and no prerequisites (login state?) are stated.

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