Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_get_user_info_by_profile_url

Read-only

根据主页链接、短链接或分享文案获取单个小红书用户信息。

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": {
      "profile_url": "<profile_url>"
    },
    "name": "xhs_get_user_info_by_profile_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_urlYes小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com / xhslink.cn / xhsurl.com / xhsurl.cn 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。

Output Schema

NameRequiredDescriptionDefault
bioYes用户个人简介(biography);没有简介时为空字符串
nameYes用户名称
pointsYes本次成功调用的积分消耗与账户积分余额。
red_idYes用户公开小红书号;没有小红书号时为空字符串
user_idYes用户 user_id
verifiedYes是否已认证
live_infoNo直播状态和直播间摘要;缺失或没有可用信息时为 null,不表示未直播;其中 is_live 为 null 表示状态未知
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
    • addedOutput schema / properties / live_info
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "is_live": {
      +          "anyOf": [
      +            {
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "是否正在直播;已确认直播时为 true;上游字段缺失、状态未知或尚未核验时为 null,不表示未直播",
      +          "title": "Is Live"
      +        },
      +        "live_url": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "小红书直播间手机网页地址(HTTPS);直播间 ID 不可用时为 null,不保证电脑端可观看",
      +          "title": "Live Url"
      +        },
      +        "room_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "直播间 ID;不可用时为 null",
      +          "title": "Room Id"
      +        },
      +        "start_time": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "直播开始时间,Unix 秒级时间戳;不可用时为 null",
      +          "title": "Start Time"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "直播间标题;不可用时为 null",
      +          "title": "Title"
      +        }
      +      },
      +      "required": [
      +        "room_id",
      +        "start_time",
      +        "title",
      +        "live_url"
      +      ],
      +      "title": "UserLiveInfoData",
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "直播状态和直播间摘要;缺失或没有可用信息时为 null,不表示未直播;其中 is_live 为 null 表示状态未知"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  3. 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
  4. Changed19 schema fields changed
    • addedOutput schema / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / bio / title
      Added value: +"Bio"
    • addedOutput schema / properties / follower_count / title
      Added value: +"Follower Count"
    • addedOutput schema / properties / following_count / title
      Added value: +"Following Count"
    • addedOutput schema / properties / ip_location / title
      Added value: +"Ip Location"
    • addedOutput schema / properties / is_enterprise_account / title
      Added value: +"Is Enterprise Account"
    • addedOutput schema / properties / is_professional_account / title
      Added value: +"Is Professional Account"
    • addedOutput schema / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / posted_note_count / title
      Added value: +"Posted Note Count"
    • addedOutput schema / properties / profile_tags / title
      Added value: +"Profile Tags"
    • addedOutput schema / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / received_collect_count / title
      Added value: +"Received Collect Count"
    • addedOutput schema / properties / received_like_count / title
      Added value: +"Received Like Count"
    • addedOutput schema / properties / red_id / title
      Added value: +"Red Id"
    • addedOutput schema / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / verification_category / title
      Added value: +"Verification Category"
    • addedOutput schema / properties / verification_name / title
      Added value: +"Verification Name"
    • addedOutput schema / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / title
      Added value: +"UserInfoData"
  5. 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"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / profile_url / description
      Previous value: -"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com / xhslink.cn 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。"New value: +"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com / xhslink.cn / xhsurl.com / xhsurl.cn 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。"
  7. Changed1 schema field changed
    • changedInput schema / properties / profile_url / description
      Previous value: -"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。"New value: +"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com / xhslink.cn 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。"
  8. 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"
      +]
  9. Changed1 schema field changed
    • changedInput schema / properties / profile_url / description
      Previous value: -"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com 短链接;3) 包含上述任一链接的完整分享文案。解析后的最终链接必须是用户主页链接。"New value: +"小红书主页链接、短链接或分享文案。支持以下形式:1) xiaohongshu.com/user/profile/... 主页长链;2) xhslink.com 短链接;3) 包含上述任一链接的完整分享文案。请传主页链接,不要传笔记链接。"
  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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-network behavior are covered. The description adds nothing about what profile fields come back, rate limits, or auth prerequisites, but an output schema exists so return values need not be described here.

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 front-loaded sentence with zero filler; the resource and its accepted inputs are stated immediately. Nothing could be removed without losing meaning.

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?

For a one-parameter read tool with full schema coverage, annotations, and an output schema, the description is nearly complete. The only meaningful omission is guidance on how it relates to the by-user-id and user-id-resolution siblings.

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 100% and the schema already enumerates the accepted URL forms and warns against passing note links. The description merely restates those input types, adding no format, validation, or fallback detail beyond the schema.

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 names a specific verb (获取) and resource (单个小红书用户信息), and the mention of '主页链接、短链接或分享文案' implicitly distinguishes it from the by-user-id sibling. It stops short of naming alternatives explicitly, so differentiation is inferred rather than stated.

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 through the accepted input forms; the description never says when to prefer this over xhs_get_user_info_by_user_id or xhs_get_user_id_by_encrypted_user_id. An agent can infer the split from input type, but there is no explicit routing guidance.

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