Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_get_user_info_by_user_id

Read-only

根据 user_id 获取单个小红书用户信息。

Input Schema

NameRequiredDescriptionDefault
user_idYes小红书用户 user_id。用户已提供时原样使用,支持完整的 24 位或 29 位小写十六进制 ID,无需先转换;否则可从笔记搜索、商品评价、商品评价回复、笔记详情、标签页笔记列表、用户信息或用户发帖列表结果中的 user_id/author.user_id 复制;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称。

Output Schema

NameRequiredDescriptionDefault
bioYes用户个人简介(biography);没有简介时为空字符串
nameYes用户名称
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
red_idYes用户公开小红书号;没有小红书号时为空字符串
user_idYes用户 user_id
verifiedYes是否已认证
avatar_urlYes用户头像链接;没有头像链接时为 null
ip_locationYes用户 IP 属地;没有 IP 属地时为空字符串
profile_urlYes用户主页链接;没有主页链接时为 null
profile_tagsYes主页头部标签名称列表;没有标签时为空数组
follower_countYes粉丝数
following_countYes关注数
posted_note_countYes已发布笔记数
verification_nameYes认证主体名称;没有认证主体时为空字符串
received_like_countYes用户内容累计收到的点赞数
is_enterprise_accountYes是否为企业账号
verification_categoryYes认证补充信息;可能是行业类目或认证主体名称;未认证或没有认证信息时为空字符串
received_collect_countYes用户内容累计被收藏数
is_professional_accountYes是否为专业号

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。用户已提供时原样使用;否则可从笔记搜索、商品评价、商品评价回复、笔记详情、标签页笔记列表、用户信息或用户发帖列表结果中的 user_id/author.user_id 复制;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称。"New value: +"小红书用户 user_id。用户已提供时原样使用,支持完整的 24 位或 29 位小写十六进制 ID,无需先转换;否则可从笔记搜索、商品评价、商品评价回复、笔记详情、标签页笔记列表、用户信息或用户发帖列表结果中的 user_id/author.user_id 复制;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称。"
  2. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。请直接复制笔记搜索结果、商品评价、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"New value: +"小红书用户 user_id。用户已提供时原样使用;否则可从笔记搜索、商品评价、商品评价回复、笔记详情、标签页笔记列表、用户信息或用户发帖列表结果中的 user_id/author.user_id 复制;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称。"
  3. Changed2 schema fields changed
    • addedOutput schema / properties / points
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "本次成功调用的积分消耗与调用完成时的账户积分余额。",
      +  "properties": {
      +    "balance": {
      +      "description": "本次接口完成时看到的当前积分余额。",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "cost": {
      +      "description": "本次请求最终确认消耗的积分。",
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "cost",
      +    "balance"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "user_id",
      -  "name",
      -  "avatar_url",
      -  "profile_url",
      -  "red_id",
      -  "bio",
      -  "verified",
      -  "verification_category",
      -  "is_professional_account",
      -  "verification_name",
      -  "is_enterprise_account",
      -  "profile_tags",
      -  "follower_count",
      -  "following_count",
      -  "posted_note_count",
      -  "received_like_count",
      -  "received_collect_count",
      -  "ip_location"
      -]New value: +[
      +  "user_id",
      +  "name",
      +  "avatar_url",
      +  "profile_url",
      +  "red_id",
      +  "bio",
      +  "verified",
      +  "verification_category",
      +  "is_professional_account",
      +  "verification_name",
      +  "is_enterprise_account",
      +  "profile_tags",
      +  "follower_count",
      +  "following_count",
      +  "posted_note_count",
      +  "received_like_count",
      +  "received_collect_count",
      +  "ip_location",
      +  "points"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。请直接复制笔记搜索结果、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"New value: +"小红书用户 user_id。请直接复制笔记搜索结果、商品评价、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"
  5. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。请直接复制搜索结果、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"New value: +"小红书用户 user_id。请直接复制笔记搜索结果、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"
  6. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。请直接复制搜索结果、笔记详情、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"New value: +"小红书用户 user_id。请直接复制搜索结果、笔记详情、标签页笔记列表、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"
  7. Changed6 schema fields changed
    • addedOutput schema / properties / is_enterprise_account
      Added value: +{
      +  "description": "是否为企业账号",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / is_professional_account
      Added value: +{
      +  "description": "是否为专业号",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / profile_tags
      Added value: +{
      +  "description": "主页头部标签名称列表;没有标签时为空数组",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / verification_category / description
      Previous value: -"认证类目/行业类目;未认证或没有认证类目时为空字符串"New value: +"认证补充信息;可能是行业类目或认证主体名称;未认证或没有认证信息时为空字符串"
    • addedOutput schema / properties / verification_name
      Added value: +{
      +  "description": "认证主体名称;没有认证主体时为空字符串",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "user_id",
      -  "name",
      -  "avatar_url",
      -  "profile_url",
      -  "red_id",
      -  "bio",
      -  "verified",
      -  "verification_category",
      -  "follower_count",
      -  "following_count",
      -  "posted_note_count",
      -  "received_like_count",
      -  "received_collect_count",
      -  "ip_location"
      -]New value: +[
      +  "user_id",
      +  "name",
      +  "avatar_url",
      +  "profile_url",
      +  "red_id",
      +  "bio",
      +  "verified",
      +  "verification_category",
      +  "is_professional_account",
      +  "verification_name",
      +  "is_enterprise_account",
      +  "profile_tags",
      +  "follower_count",
      +  "following_count",
      +  "posted_note_count",
      +  "received_like_count",
      +  "received_collect_count",
      +  "ip_location"
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。可直接传搜索、笔记详情或用户信息结果中的 user_id/author.user_id;只有主页链接时请使用 profile_url 入口"New value: +"小红书用户 user_id。请直接复制搜索结果、笔记详情、用户信息或用户发帖列表返回的 user_id/author.user_id;如果只有主页链接,请使用 profile_url 入口;不要传小红书号、昵称或主页名称"
  9. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"小红书用户 user_id。可直接传其他结果中的 author.user_id 或用户信息工具返回的 user_id"New value: +"小红书用户 user_id。可直接传搜索、笔记详情或用户信息结果中的 user_id/author.user_id;只有主页链接时请使用 profile_url 入口"
  10. Changed2 schema fields changed
    • addedOutput schema / properties / ip_location
      Added value: +{
      +  "description": "用户 IP 属地;没有 IP 属地时为空字符串",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "user_id",
      -  "name",
      -  "avatar_url",
      -  "profile_url",
      -  "red_id",
      -  "bio",
      -  "verified",
      -  "verification_category",
      -  "follower_count",
      -  "following_count",
      -  "posted_note_count",
      -  "received_like_count",
      -  "received_collect_count"
      -]New value: +[
      +  "user_id",
      +  "name",
      +  "avatar_url",
      +  "profile_url",
      +  "red_id",
      +  "bio",
      +  "verified",
      +  "verification_category",
      +  "follower_count",
      +  "following_count",
      +  "posted_note_count",
      +  "received_like_count",
      +  "received_collect_count",
      +  "ip_location"
      +]
  11. Changed5 schema fields changed
    • changedOutput schema / properties / avatar_url / description
      Previous value: -"用户头像链接;当前不可用时为 null"New value: +"用户头像链接;没有头像链接时为 null"
    • changedOutput schema / properties / bio / description
      Previous value: -"用户个人简介(biography);当前不可用时为空字符串"New value: +"用户个人简介(biography);没有简介时为空字符串"
    • changedOutput schema / properties / profile_url / description
      Previous value: -"用户主页链接;当前不可用时为 null"New value: +"用户主页链接;没有主页链接时为 null"
    • changedOutput schema / properties / red_id / description
      Previous value: -"用户公开小红书号;当前不可用时为空字符串"New value: +"用户公开小红书号;没有小红书号时为空字符串"
    • changedOutput schema / properties / verification_category / description
      Previous value: -"认证类目/行业类目;当前不可用时为空字符串"New value: +"认证类目/行业类目;未认证或没有认证类目时为空字符串"
  12. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds nothing behavioral beyond the bare fetch intent — no auth requirements, rate limits, or data freshness context — so it contributes essentially no value beyond structured fields.

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?

A single, front-loaded sentence that wastes no words and states the fetch intent immediately. It is efficient, though its extreme brevity is achieved partly by omitting useful guidance rather than by tight writing alone.

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?

An output schema exists, so return values need not be explained, and annotations cover the read-only/open-world nature. For a single-parameter read tool this is close to adequate, but the absence of any usage or behavioral context leaves a gap for an agent choosing between the user_id and profile_url entry points.

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 single user_id parameter is documented in exceptional detail (accepted formats, sources, and what not to pass). The description adds no meaning beyond what the schema already provides, so the baseline 3 applies.

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 specific verb (获取) and resource (单个小红书用户信息) keyed by user_id, so the agent knows exactly what it fetches. It does not explicitly contrast itself with the sibling xhs_get_user_info_by_profile_url, though the '根据 user_id' qualifier implicitly separates the two entry points.

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

Usage Guidelines2/5

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

The description text contains no when-to-use or when-not-to-use guidance. The only routing hint (use the profile_url entry when you lack a user_id) lives in the schema's parameter description, not in the description itself, so the description provides no selection guidance to the agent.

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