Skip to main content
Glama

xhs_search_and_read

Read-only

Search RedNote or Xiaohongshu for a query, read the top N matching posts, and return sourced text and media for summarization.

Instructions

在指定站点搜索并逐篇读取前 N 条,返回有来源的正文和媒体资料供调用模型总结。

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": {
      "query": "<query>"
    },
    "name": "xhs_search_and_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo站点:rednote 海外版、xiaohongshu 国内版;auto 优先已登录的海外版,也可通过 XHS_MCP_SITE 固定默认站点。
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond them: it performs N sequential per-item reads (a latency/cost signal) and returns source-attributed text plus media. It still says nothing about login requirements despite the site parameter depending on session state, nor about partial-failure behavior when an individual note cannot be read.

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?

One sentence, front-loaded with the search-then-read action, with zero filler. Nothing in it is redundant or repeated from the schema or annotations.

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 three-parameter aggregation tool with no output schema, the description does state the shape of the return (source-attributed body text and media), which is the key missing piece elsewhere. However, low schema coverage plus an unspecified authentication/session dependency and no guidance on cost growth with N leaves real gaps.

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 only 33%: site has a rich enum description while query and limit are bare. The description partially compensates by mapping '前 N 条' to the limit parameter, and limit's default of 5 and range of 1-50 are self-evident from the schema, but nothing explains query semantics such as keyword matching or max length.

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 states a concrete compound action: search a given site, then read the top N results one by one, returning sourced body text and media for the caller to summarize. That clearly separates it from a plain search or single-note reader among the siblings, though it never names those siblings explicitly.

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 only implied by the phrase '供调用模型总结' (for the calling model to summarize), which suggests when this aggregate tool is preferable to a single fetch. There is no explicit when-to-use, when-not-to-use, or named alternative such as xhs_search or xhs_read_note.

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