Skip to main content
Glama

SocialDataX TikTok MCP

tiktok_get_user_info_by_tiktok_id

Read-only

根据 TikTok 号获取用户公开资料。

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": {
      "tiktok_id": "<tiktok_id>"
    },
    "name": "tiktok_get_user_info_by_tiktok_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
tiktok_idYes非空 TikTok 号,即用户主页 @ 后的标识;可使用用户搜索结果中的 TikTok 号,也可使用其他搜索、详情、评论或评论回复结果中 author.tiktok_id 的值;不要带 @,不要传用户主页链接

Output Schema

NameRequiredDescriptionDefault
bioYes用户简介;当前不可用时为空字符串
nameYes用户昵称;当前不可用时为空字符串
pointsYes本次成功调用的积分消耗与账户积分余额。
user_idYesTikTok 用户 ID;长数字字符串,原样保留,不要转为数字;当前不可用时为空字符串;不要用它代替 tiktok_id 或 profile_url
verifiedNo用户是否为认证账号;未知时省略
tiktok_idYesTikTok 号,即用户主页 @ 后的标识;当前不可用时为空字符串,为空时不要作为用户标识使用
avatar_urlYes用户头像链接;当前不可用时为 null
profile_urlYes用户主页链接;当前不可用时为 null
follower_countNo粉丝数;未知时省略
following_countNo关注数;未知时省略
private_accountNo用户账号是否为私密账号;未知时省略
received_like_countNo用户作品累计获赞数;未知时省略
posted_content_countNo用户已发布作品数;未知时省略

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. Changed13 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 / name / title
      Added value: +"Name"
    • addedOutput schema / properties / posted_content_count / title
      Added value: +"Posted Content Count"
    • addedOutput schema / properties / private_account / title
      Added value: +"Private Account"
    • 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 / tiktok_id / title
      Added value: +"Tiktok Id"
    • addedOutput schema / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / verified / title
      Added value: +"Verified"
    • addedOutput schema / title
      Added value: +"TikTokUserInfoData"
  4. Changed17 schema fields changed
    • addedOutput schema / properties / follower_count / default
      Added value: +null
    • changedOutput schema / properties / follower_count / description
      Previous value: -"粉丝数;当前不可用时为 null"New value: +"粉丝数;未知时省略"
    • addedOutput schema / properties / following_count / default
      Added value: +null
    • changedOutput schema / properties / following_count / description
      Previous value: -"关注数;当前不可用时为 null"New value: +"关注数;未知时省略"
    • addedOutput schema / properties / posted_content_count / default
      Added value: +null
    • changedOutput schema / properties / posted_content_count / description
      Previous value: -"用户已发布作品数;当前不可用时为 null"New value: +"用户已发布作品数;未知时省略"
    • addedOutput schema / properties / private_account / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / private_account / default
      Added value: +null
    • changedOutput schema / properties / private_account / description
      Previous value: -"用户账号是否为私密账号"New value: +"用户账号是否为私密账号;未知时省略"
    • removedOutput schema / properties / private_account / type
      Removed value: -"boolean"
    • addedOutput schema / properties / received_like_count / default
      Added value: +null
    • changedOutput schema / properties / received_like_count / description
      Previous value: -"用户作品累计获赞数;当前不可用时为 null"New value: +"用户作品累计获赞数;未知时省略"
    • addedOutput schema / properties / verified / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / verified / default
      Added value: +null
    • changedOutput schema / properties / verified / description
      Previous value: -"用户是否为认证账号"New value: +"用户是否为认证账号;未知时省略"
    • removedOutput schema / properties / verified / type
      Removed value: -"boolean"
    • changedOutput schema / required
      Previous value: -[
      -  "user_id",
      -  "tiktok_id",
      -  "name",
      -  "avatar_url",
      -  "profile_url",
      -  "bio",
      -  "verified",
      -  "private_account",
      -  "follower_count",
      -  "following_count",
      -  "received_like_count",
      -  "posted_content_count",
      -  "points"
      -]New value: +[
      +  "user_id",
      +  "tiktok_id",
      +  "name",
      +  "avatar_url",
      +  "profile_url",
      +  "bio",
      +  "points"
      +]
  5. Changed3 schema fields changed
    • changedInput schema / properties / tiktok_id / description
      Previous value: -"TikTok 号,即用户主页 @ 后的标识;可直接使用搜索、详情、评论或评论回复结果中 author.tiktok_id 的值;不要带 @,不要传用户主页链接"New value: +"非空 TikTok 号,即用户主页 @ 后的标识;可使用用户搜索结果中的 TikTok 号,也可使用其他搜索、详情、评论或评论回复结果中 author.tiktok_id 的值;不要带 @,不要传用户主页链接"
    • addedInput schema / properties / tiktok_id / minLength
      Added value: +1
    • addedInput schema / properties / tiktok_id / pattern
      Added value: +".*\\S.*"
  6. First observed

TDQS

B3.2/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 the safety profile is covered. The description adds that only 公开 (public) profile data is returned, which is modest extra context, but says nothing about missing/deleted users, credential requirements, or quota behavior. Output schema exists, so return-shape disclosure is not required.

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 with zero filler; the key differentiator (identifier type) leads the sentence. It is efficient rather than padded, though brevity here borders on under-specification.

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?

For a one-parameter, read-only lookup with a full schema and an output schema, the description is adequate but thin: it offers no fallback guidance when the identifier is a URL and no note on not-found behavior. It leaves the agent to consult the sibling list to pick the URL variant.

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 tiktok_id property already spells out the format rules (non-empty, no @, no URL, acceptable sources such as author.tiktok_id). The description adds no meaning beyond that, so the high-coverage baseline of 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 (获取/get) and resource (用户公开资料/user public profile) scoped by TikTok ID, so an agent knows exactly what it returns. It implicitly distinguishes itself from the URL-based sibling by naming 'TikTok 号' as the key, but never names that sibling explicitly, keeping it from a 5.

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?

There is no when-to-use or when-not-to-use guidance, and no routing to the obvious alternative tiktok_get_user_info_by_profile_url when the agent only has a profile link. Usage is only inferable from the phrase '根据 TikTok 号'.

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