Skip to main content
Glama

SocialDataX X / Twitter MCP

x_get_user_info_by_profile_url

Read-only

根据 X 用户主页链接获取公开用户信息;可直接使用结果里的非空 author.profile_url,不要传帖子链接。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profile_urlYesX 用户主页链接;从搜索、详情、评论或评论回复结果的非空 author.profile_url,或用户帖子列表结果的非空 author.profile_url,或用户信息结果的非空 profile_url 原样复制;也可传用户提供的 x.com 或 twitter.com 用户主页链接;不要传帖子链接、评论链接、帖子正文里的链接、搜索关键词或接口地址。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bioYes用户个人简介;没有或不可用时为空字符串。
nameYes用户展示名;不是 username;不可用时为空字符串。
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
user_idYesX 用户稳定数字 ID;不可用时为空字符串。
locationYes用户主页资料里填写的所在地;不是 IP 属地;不可用时为空字符串。
usernameYesX 用户名,不带 @;不可用时为空字符串。
avatar_urlYes头像链接;不可用时为 null。
is_privateYes是否私密/受保护账号;不可用时为 null。
post_countYes累计发帖数;不可用时为 null。
is_verifiedYes是否显示 X 认证标识;不可用时为 null。
profile_urlYes用户主页链接;不可用时为 null。
external_urlYes用户主页填写的网站或外部链接;不是用户主页链接;标准用户主页请使用 profile_url;不可用时为 null。
verified_typeYes认证类型补充文本;不用于判断是否认证,应以 is_verified 为准;没有或不可用时为 null。
follower_countYes粉丝数;不可用时为 null。
following_countYes关注数;不可用时为 null。
pinned_post_idsYes置顶帖子 ID 列表;可用于 x_get_post_detail_by_post_id;没有或不可用时为空数组。
header_image_urlYes用户主页头图链接;不可用时为 null。
media_post_countYes累计媒体帖数;不可用时为 null。
account_created_timeYes账号创建时间,秒级 Unix 时间戳;不可用时为 null。
affiliated_account_countYes该账号关联的账号数量;不可用时为 null。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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. The description's mention of 公开用户信息 (public info) is consistent with these and adds a slight context that the data is public, but it does not materially extend beyond what the annotations already convey. No contradiction with annotations.

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?

The description is compact and front-loaded: purpose first, then a usage caution. Both clauses earn their place with no filler. It could be slightly more expansive on usage context, but for a single-parameter tool this length is well balanced.

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?

An output schema exists, so the return shape is covered outside the description. The parameter is exhaustively documented in the schema, and the description covers purpose plus a key sourcing caution. For a read-only, single-parameter tool, nearly everything an agent needs to call it correctly is present.

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 profile_url parameter description is exhaustive, specifying accepted formats and exclusions. The tool description adds only 'don't pass post links,' a point already captured in the schema. At full schema coverage, baseline 3 is appropriate.

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 states a specific verb (获取/get) and resource (公开用户信息/public user info) keyed by a specific identifier (profile_url). It is clearly distinguishable from the sibling get_by_user_id and get_by_username tools, which operate on different identifiers, and from get_user_posts_by_profile_url, which returns a different resource.

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

Usage Guidelines4/5

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

The description gives a clear sourcing instruction (use non-empty author.profile_url from search/detail/comment results) and an explicit exclusion (do not pass post links). The schema description is equally rich, listing exactly where to obtain the URL and what formats are valid. It does not explicitly name alternatives like get_by_user_id when an ID is available, but the identifier-based differentiation is effectively conveyed.

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