Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_search_users

Read-only

按搜索词搜索小红书用户、账号或博主,支持分页;已有用户 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": {
      "keyword": "<keyword>"
    },
    "name": "xhs_search_users"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYes搜索词,可传昵称、账号名或小红书号;不要传主页链接、user_id 或分页令牌。
page_tokenNo用户搜索分页令牌,首次请求留空;续页保持 keyword 不变,将上一页完整 next_page_token 原样传回,不得截断、修改或自行生成。

Output Schema

NameRequiredDescriptionDefault
itemsYes搜索到的用户列表
pointsYes本次成功调用的积分消耗与账户积分余额。
next_page_tokenYes下一页分页令牌,为空表示结束;续页保持 keyword 不变并完整原样传回。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额。"New value: +"本次接口完成时看到的当前积分余额,可为负数。"
    • removedOutput schema / properties / points / properties / balance / minimum
      Removed value: -0
  3. Changed9 schema fields changed
    • addedOutput schema / properties / items / items / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / items / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / red_id / title
      Added value: +"Red Id"
    • addedOutput schema / properties / items / items / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / items / items / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / properties / items / items / title
      Added value: +"UserSearchItem"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / properties / next_page_token / title
      Added value: +"Next Page Token"
    • addedOutput schema / title
      Added value: +"UserSearchResult"
  4. Added

TDQS

A4.2/5.0
Behavior3/5

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

The readOnlyHint and openWorldHint annotations already establish that this is a safe, open-web read operation, so the description only needs to add context. It contributes the fact that pagination is supported, which is useful, but it says nothing about per-page result counts, rate limits, or result ordering. Solid but not rich beyond the annotations.

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 front-loaded sentence plus one short routing clause; the primary purpose comes first and the exclusion second. There is no redundant wording, and the pagination note is attached to the purpose rather than buried.

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 full schema descriptions, an output schema, and annotations already covering the safety and openness profile, the description covers everything needed to select and invoke the tool. The only minor gap is that it does not indicate result volume or ordering per page, which the agent may want when planning pagination.

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%, and the keyword and page_token properties are already documented in detail, including the instruction not to pass profile links, user_id, or page tokens as the keyword. The description adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 gives a specific verb and resource combination ('按搜索词搜索小红书用户、账号或博主' — search Xiaohongshu users, accounts, or bloggers by keyword) and names the scope of what it returns. It also distinguishes itself from the sibling profile tools, so an agent can tell it apart from xhs_get_user_info_by_user_id or xhs_get_user_info_by_profile_url without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It states both when to use it (keyword-based discovery) and when not to: '已有用户 ID 或主页链接时,使用用户资料工具' explicitly routes the agent to the user-profile tools when an identifier is already known. This is the exact routing information needed, though it names the alternative as a category rather than a specific tool name.

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