Skip to main content
Glama

xhs_search

Read-only

Search RedNote or Xiaohongshu by query, return the first N results in page order, and keep signed links with a search ID valid for one hour.

Instructions

在指定站点通过网页搜索栏搜索,按网页顺序列出前 N 条,保留签名链接;search_id 有效 1 小时。

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"
  }
}

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.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the description's job is to add what annotations can't: result ordering (page order), preservation of signed links, and the 1-hour validity of search_id. That expiry and the signed-link retention are genuinely non-obvious operational facts an agent needs.

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?

A single compact sentence plus a semicolon clause, with the core action front-loaded and no filler. Every clause (site, ordering, signed links, expiry) carries distinct information.

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?

With no output schema, the description does supply the shape of the return (ordered list of N results with signed links) and the lifetime of the search_id handle. It falls short only on how the returned search_id should be consumed and on the undocumented limit/query parameters.

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 is documented in the schema, but limit (1-50, default 10) and query (length bounds) carry no descriptions. The description contributes only 'first N' for limit and the vague 'specified site', leaving the auto/rednote/xiaohongshu trade-off and query constraints unexplained.

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?

States a concrete verb and resource: search via the site's web search bar, returning the first N results in page order while preserving signed links. The mention of search_id strongly implies a follow-up read step, but no sibling tool (e.g. xhs_search_and_read, xhs_read_search_results) is named, so differentiation 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance, and the obvious alternative xhs_search_and_read is never mentioned. Usage is only implied by the 'search_id valid 1 hour' clause, which hints at a search-then-read workflow within a time window.

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