Skip to main content
Glama

SocialDataX B站 Bilibili MCP

bilibili_get_user_info_by_user_id

Read-only

根据 Bilibili 用户 user_id 获取用户资料。

Input Schema

NameRequiredDescriptionDefault
user_idYesB 站用户 user_id,通常是 space.bilibili.com/{user_id} 路径里的数字 ID;可从搜索、详情、评论或用户资料结果中的 author.user_id 或 user_id 复制;不要传用户主页链接,不要传视频链接、昵称、BV 号或 aid。已有用户主页链接时使用 by_profile_url 工具。

Output Schema

NameRequiredDescriptionDefault
bioYes用户简介;不可用时为空字符串。
nameYesB 站用户名称;不可用时为空字符串。
genderYes用户性别:male 表示男,female 表示女,unknown 表示未知或未公开。
pointsYes本次成功调用的积分消耗与账户积分余额。
user_idYesB 站用户 user_id;用于标识作者或用户。
birthdayYes公开生日,通常为 MM-DD;不可用时为 null。
verifiedYes是否有 B 站个人或机构认证。
live_infoYes用户直播状态摘要;没有直播间或不可用时为 null。
avatar_urlYes用户头像链接;不可用时为 null。
profile_urlYesB 站用户主页链接;可用于打开用户主页;不可用时为 null。
charging_urlYes充电入口链接;不可用时为 null。
charging_countYes累计充电人数;未开通或不可用时为 null。
follower_countYes粉丝数;不可用时为 null。
profile_noticeYesB 站空间公告;没有公告或不可用时为 null。
following_countYes关注数;不可用时为 null。
video_view_countYes累计视频播放数;不可用时为 null。
posted_audio_countYes用户公开投稿音频数量;不可用时为 null。
posted_video_countYes用户公开投稿视频数量;不可用时为 null。
verification_labelYesB 站认证说明;没有认证或不可用时为 null。
received_like_countYes累计获赞数;不可用时为 null。
posted_content_countYes用户公开投稿总数,对应 B 站空间投稿页的「投稿」总数;不可用时为 null。
posted_image_text_countYes用户公开投稿图文数量,对应 B 站空间投稿页的「图文」分类;不可用时为 null。

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. Changed22 schema fields changed
    • addedOutput schema / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / bio / title
      Added value: +"Bio"
    • addedOutput schema / properties / birthday / title
      Added value: +"Birthday"
    • addedOutput schema / properties / charging_count / title
      Added value: +"Charging Count"
    • addedOutput schema / properties / charging_url / title
      Added value: +"Charging Url"
    • addedOutput schema / properties / follower_count / title
      Added value: +"Follower Count"
    • addedOutput schema / properties / following_count / title
      Added value: +"Following Count"
    • addedOutput schema / properties / gender / title
      Added value: +"Gender"
    • changedOutput schema / properties / live_info / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "cover_image_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "直播间封面图链接;不可用时为 null。"
      -      },
      -      "is_live": {
      -        "description": "直播间当前是否正在直播。",
      -        "type": "boolean"
      -      },
      -      "live_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "直播间页面链接;不可用时为 null。"
      -      },
      -      "room_id": {
      -        "description": "B 站直播间 ID。",
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "直播间标题;不可用时为空字符串。",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "room_id",
      -      "is_live",
      -      "title",
      -      "live_url",
      -      "cover_image_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "cover_image_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "直播间封面图链接;不可用时为 null。",
      +        "title": "Cover Image Url"
      +      },
      +      "is_live": {
      +        "description": "直播间当前是否正在直播。",
      +        "title": "Is Live",
      +        "type": "boolean"
      +      },
      +      "live_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "直播间页面链接;不可用时为 null。",
      +        "title": "Live Url"
      +      },
      +      "room_id": {
      +        "description": "B 站直播间 ID。",
      +        "title": "Room Id",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "直播间标题;不可用时为空字符串。",
      +        "title": "Title",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "room_id",
      +      "is_live",
      +      "title",
      +      "live_url",
      +      "cover_image_url"
      +    ],
      +    "title": "BilibiliUserLiveInfoData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / posted_audio_count / title
      Added value: +"Posted Audio Count"
    • addedOutput schema / properties / posted_content_count / title
      Added value: +"Posted Content Count"
    • addedOutput schema / properties / posted_image_text_count / title
      Added value: +"Posted Image Text Count"
    • addedOutput schema / properties / posted_video_count / title
      Added value: +"Posted Video Count"
    • addedOutput schema / properties / profile_notice / title
      Added value: +"Profile Notice"
    • addedOutput schema / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / received_like_count / title
      Added value: +"Received Like Count"
    • addedOutput schema / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / verification_label / title
      Added value: +"Verification Label"
    • addedOutput schema / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / properties / video_view_count / title
      Added value: +"Video View Count"
    • addedOutput schema / title
      Added value: +"BilibiliUserInfoData"
  4. First observed

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 structurally. Beyond that, the description adds no behavioral context at all — no mention of rate limits, authentication, caching, or what happens when the user_id is invalid or the user does not exist, which matters for an open-world fetch.

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 short sentence with zero filler, front-loading the resource and the key. It is tight rather than padded; the only issue is that terseness here shades into under-specification rather than efficiency.

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?

Complexity is low (one required string parameter), an output schema exists so return values need no explanation, and annotations cover the safety profile — so the description is not required to carry much. Still, with 21 sibling tools it should at minimum state that profile URLs belong to the by_profile_url variant, which is left entirely to the schema.

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 user_id schema is unusually rich (ID format, where to copy it from, explicit anti-patterns like links/nicknames/BV号/aid, and a pointer to the by_profile_url sibling). The description merely names user_id, adding nothing beyond the schema, 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 names a specific verb (获取), a specific resource (用户资料), and the key it is addressed by (user_id), so an agent knows exactly what the tool returns. It does not, however, distinguish itself from the sibling bilibili_get_user_info_by_profile_url inside the description text — that differentiation only surfaces in the tool name and the parameter schema.

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 contains no when-to-use, when-not-to-use, or alternative-tool guidance. The useful routing rule ('已有用户主页链接时使用 by_profile_url 工具') lives in the user_id schema description, not in the tool description, so an agent reading only the description gets no selection guidance among the many sibling tools.

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