Skip to main content
Glama

SocialDataX 微博 Weibo MCP

weibo_search_posts

Read-only

按搜索词搜索微博帖子;当用户要按关键词或短语查找帖子时使用。已有帖子链接或 post_id 时使用对应帖子工具;已有用户主页链接或 user_id 时使用对应用户工具。支持 page_token 翻页。

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": {
      "keyword": "<keyword>"
    },
    "name": "weibo_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYes微博帖子搜索词,可传关键词或短语;不要传帖子链接、用户主页链接、post_id、user_id 或 page_token。
page_tokenNo微博搜索分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一关键词搜索链路,不能跨关键词复用。

Output Schema

NameRequiredDescriptionDefault
itemsYes当前页微博帖子列表。
pointsYes本次成功调用的积分消耗与账户积分余额。
next_page_tokenYes下一页不透明分页令牌;为空表示没有更多结果。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回;next_page_token 只能用于同一能力和同一分页链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。

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
    • changedOutput schema / properties / items / items / properties / author / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "avatar_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "头像链接;不可用时为 null。"
      -      },
      -      "name": {
      -        "description": "微博用户名称;不可用时为空字符串。",
      -        "type": "string"
      -      },
      -      "profile_url": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "微博用户主页链接;可用于打开用户主页;不可用时为 null;需要继续查询用户资料或用户帖子列表时优先使用非空 user_id。"
      -      },
      -      "user_id": {
      -        "description": "微博用户 user_id;不可用时为空字符串;非空时可作为用户资料或用户帖子列表工具输入。",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "user_id",
      -      "name",
      -      "avatar_url",
      -      "profile_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "avatar_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "头像链接;不可用时为 null。",
      +        "title": "Avatar Url"
      +      },
      +      "name": {
      +        "description": "微博用户名称;不可用时为空字符串。",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "profile_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "微博用户主页链接;可用于打开用户主页;不可用时为 null;需要继续查询用户资料或用户帖子列表时优先使用非空 user_id。",
      +        "title": "Profile Url"
      +      },
      +      "user_id": {
      +        "description": "微博用户 user_id;不可用时为空字符串;非空时可作为用户资料或用户帖子列表工具输入。",
      +        "title": "User Id",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "user_id",
      +      "name",
      +      "avatar_url",
      +      "profile_url"
      +    ],
      +    "title": "WeiboAuthorData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / items / items / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / items / items / properties / content / title
      Added value: +"Content"
    • addedOutput schema / properties / items / items / properties / image_urls / title
      Added value: +"Image Urls"
    • 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: +"WeiboImageData"
    • 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 / play_count / title
      Added value: +"Play Count"
    • addedOutput schema / properties / items / items / properties / post_id / title
      Added value: +"Post Id"
    • 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 / repost_count / title
      Added value: +"Repost Count"
    • addedOutput schema / properties / items / items / properties / topic_tags / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / topic_tags / items / title
      Added value: +"WeiboTopicTagData"
    • addedOutput schema / properties / items / items / properties / topic_tags / title
      Added value: +"Topic Tags"
    • addedOutput schema / properties / items / items / title
      Added value: +"WeiboPostItemData"
    • 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: +"WeiboPostListResult"
  4. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / images
      Added value: +{
      +  "description": "图片列表,包含链接及宽高;无图时为空数组。",
      +  "items": {
      +    "properties": {
      +      "height": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "图片高度,像素;不可用时为 null。"
      +      },
      +      "url": {
      +        "description": "图片链接。",
      +        "type": "string"
      +      },
      +      "width": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "图片宽度,像素;不可用时为 null。"
      +      }
      +    },
      +    "required": [
      +      "url",
      +      "width",
      +      "height"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "content",
      -  "publish_time",
      -  "post_url",
      -  "like_count",
      -  "comment_count",
      -  "repost_count",
      -  "play_count",
      -  "image_urls",
      -  "topic_tags",
      -  "author"
      -]New value: +[
      +  "post_id",
      +  "content",
      +  "publish_time",
      +  "post_url",
      +  "like_count",
      +  "comment_count",
      +  "repost_count",
      +  "play_count",
      +  "image_urls",
      +  "images",
      +  "topic_tags",
      +  "author"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / keyword / description
      Previous value: -"微博帖子搜索关键词;自然语言关键词可传品牌名、话题、人物名、内容需求或研究主题;不要传帖子链接、用户主页链接、post_id、user_id 或 page_token 作为 keyword。"New value: +"微博帖子搜索词,可传关键词或短语;不要传帖子链接、用户主页链接、post_id、user_id 或 page_token。"
  6. 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: -[
      -  "items",
      -  "next_page_token"
      -]New value: +[
      +  "items",
      +  "next_page_token",
      +  "points"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / keyword / description
      Previous value: -"微博帖子搜索关键词;不要传帖子链接、用户主页链接或分页 token。"New value: +"微博帖子搜索关键词;自然语言关键词可传品牌名、话题、人物名、内容需求或研究主题;不要传帖子链接、用户主页链接、post_id、user_id 或 page_token 作为 keyword。"
  8. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / topic_tags
      Added value: +{
      +  "description": "微博帖子话题标签列表;无标签时为空数组。",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "话题标签名称。",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "content",
      -  "publish_time",
      -  "post_url",
      -  "like_count",
      -  "comment_count",
      -  "repost_count",
      -  "play_count",
      -  "image_urls",
      -  "author"
      -]New value: +[
      +  "post_id",
      +  "content",
      +  "publish_time",
      +  "post_url",
      +  "like_count",
      +  "comment_count",
      +  "repost_count",
      +  "play_count",
      +  "image_urls",
      +  "topic_tags",
      +  "author"
      +]
  9. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / play_count / description
      Previous value: -"播放数;不可用时为 null。"New value: +"帖子内视频播放数;没有视频或上游未返回时为 null,不是帖子浏览数。"
  10. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / play_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "播放数;不可用时为 null。"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "content",
      -  "publish_time",
      -  "post_url",
      -  "like_count",
      -  "comment_count",
      -  "repost_count",
      -  "image_urls",
      -  "author"
      -]New value: +[
      +  "post_id",
      +  "content",
      +  "publish_time",
      +  "post_url",
      +  "like_count",
      +  "comment_count",
      +  "repost_count",
      +  "play_count",
      +  "image_urls",
      +  "author"
      +]
  11. First observed

TDQS

A4.3/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 and open-web profile is covered. The description adds only that results are paginated via page_token, and the actual chaining rules (opaque token, same keyword chain only, no modification) live entirely in the schema. No mention of result volume, rate limits, or search scope limits beyond what annotations imply.

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?

Three short clauses, front-loaded with the core action, then routing rules, then pagination. Every sentence carries distinct information and nothing is repeated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two parameters, full schema descriptions, an output schema, and read-only annotations, the definition covers everything an agent needs: what it searches, when to pick it over siblings, and that results paginate. Nothing material is missing.

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 page_token property already spells out the full opaque-token contract. The description merely restates '支持 page_token 翻页', adding no syntax or constraint beyond the schema, which is the expected baseline-3 behavior when the schema does the heavy lifting.

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 gives a specific verb (搜索) and resource (微博帖子), then immediately draws the boundary against sibling families: post-link/post_id tools and user-link/user_id tools. An agent can distinguish it from weibo_search_users, weibo_search_suggestions, and weibo_get_post_detail_by_* without opening any 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?

It states both the positive trigger (user wants to find posts by keyword or phrase) and the exclusions with named alternatives (existing post link/post_id → post tools; existing user profile link/user_id → user tools). This is explicit when/when-not guidance, not implied.

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