Skip to main content
Glama

SocialDataX 百度贴吧 MCP

baidu_tieba_get_user_posts_by_user_id

Read-only

按数字用户 ID 读取该用户发布的主题帖,支持分页,不包含回复活动,不提供排序。

已有主页链接时优先使用 baidu_tieba_get_user_posts_by_profile_url;列表及媒体不保证完整,空令牌表示本次可读取列表结束。

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": {
      "user_id": "<user_id>"
    },
    "name": "baidu_tieba_get_user_posts_by_user_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes百度贴吧数字用户 ID,可取搜索、帖子详情或评论作者的 user_id;不是主页链接中的 portrait 或 tieba_uid。
page_tokenNo分页令牌;首次留空,续页原样传入本接口返回的 next_page_token,并保持相同的用户入口和标识。不要使用搜索、评论或其他用户的令牌。

Output Schema

NameRequiredDescriptionDefault
itemsYes当前页用户发布的主题帖,保留贴吧返回顺序。
pointsYes本次成功调用的积分消耗与账户积分余额。
next_page_tokenYes下一页令牌;为空表示本次可读取列表结束,不代表该用户全部历史帖子都已返回。

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. Changed34 schema fields changed
    • addedOutput schema / properties / items / items / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / items / items / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / items / items / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / items / items / properties / author / title
      Added value: +"TiebaSearchAuthor"
    • addedOutput schema / properties / items / items / properties / forum_id / title
      Added value: +"Forum Id"
    • addedOutput schema / properties / items / items / properties / forum_name / title
      Added value: +"Forum Name"
    • addedOutput schema / properties / items / items / properties / images / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / items / items / properties / images / items / properties / url / title
      Added value: +"Url"
    • addedOutput schema / properties / items / items / properties / images / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / items / items / properties / images / items / title
      Added value: +"TiebaUserPostImage"
    • addedOutput schema / properties / items / items / properties / images / title
      Added value: +"Images"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / post_url / title
      Added value: +"Post Url"
    • addedOutput schema / properties / items / items / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / items / items / properties / reply_count / title
      Added value: +"Reply Count"
    • addedOutput schema / properties / items / items / properties / share_count / title
      Added value: +"Share Count"
    • addedOutput schema / properties / items / items / properties / summary / title
      Added value: +"Summary"
    • addedOutput schema / properties / items / items / properties / thread_id / title
      Added value: +"Thread Id"
    • addedOutput schema / properties / items / items / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / items / items / properties / update_time / title
      Added value: +"Update Time"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / duration_ms / title
      Added value: +"Duration Ms"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / play_count / title
      Added value: +"Play Count"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / video_url / title
      Added value: +"Video Url"
    • addedOutput schema / properties / items / items / properties / videos / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / items / items / properties / videos / items / title
      Added value: +"TiebaUserPostVideo"
    • addedOutput schema / properties / items / items / properties / videos / title
      Added value: +"Videos"
    • addedOutput schema / properties / items / items / properties / view_count / title
      Added value: +"View Count"
    • addedOutput schema / properties / items / items / title
      Added value: +"TiebaUserPostItem"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / properties / next_page_token / title
      Added value: +"Next Page Token"
    • addedOutput schema / title
      Added value: +"TiebaUserPostsResult"
  4. Changed3 schema fields changed
    • addedOutput schema / properties / items / items / properties / update_time / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / items / items / properties / update_time / description
      Previous value: -"更新时间,秒级 Unix 时间戳。"New value: +"更新时间,秒级 Unix 时间戳;未提供时为 null。"
    • removedOutput schema / properties / items / items / properties / update_time / type
      Removed value: -"integer"
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint) and openness, so the description's job is to add operational context, which it does: pagination is supported, replies are excluded, results are not guaranteed complete, and an empty token signals list end. It stops short of describing ordering of returned items beyond "no sorting" or error behavior for invalid/private users.

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?

Two tight sentences with the scope front-loaded and the sibling routing second; no filler. The trailing clause about media not being guaranteed complete is slightly tangential for a posts-listing tool but still earns its place as a completeness caveat.

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?

With an output schema, full parameter coverage, and read-only annotations, the description only needs to establish scope, exclusions, and pagination termination, all of which it does. It leaves unaddressed what happens for nonexistent or privacy-restricted user IDs, a minor gap for a public-data tool.

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 schema already explains both user_id (not portrait/tieba_uid) and page_token (round-trip next_page_token, keep same user). The description only echoes the numeric-ID entry point and adds the empty-token termination semantics, which is behavior rather than new parameter meaning, so the baseline 3 applies.

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?

States a specific verb-plus-resource ("读取该用户发布的主题帖") keyed to a numeric user ID, and immediately bounds scope by excluding replies ("不包含回复活动") and sorting. It names the sibling baidu_tieba_get_user_posts_by_profile_url as the alternative entry point, so an agent can distinguish the two without reading either schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule ("已有主页链接时优先使用 ...by_profile_url"), which is the exact when/when-not decision an agent needs against 18 siblings. It also states the upstream continuation condition (empty token = this readable list is finished), removing ambiguity about retry behavior.

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