Skip to main content
Glama

SocialDataX 微博 Weibo MCP

weibo_get_post_comments_by_post_url

Read-only

根据微博帖子链接、短链接或分享文案获取帖子一级评论,支持 page_token 翻页。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_urlYes微博帖子页面链接、头条文章链接(ttarticle/p/show?id=...)、短链接或包含链接的分享文案;文章详情返回文章正文,评论、点赞和转发使用文章关联的微博帖子;不要传用户主页链接或 post_id。
sort_typeNo微博一级评论排序方式。hot 表示默认热门评论流;time_descending 表示当前可返回范围内最新评论优先。默认 hot。继续翻页时必须与上一页返回 next_page_token 所属的 sort_type 保持一致。hot
page_tokenNo微博评论分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一帖子、同一 sort_type 的评论分页链路,不能跨帖子或排序方式复用。

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / post_url / description
      Previous value: -"微博帖子页面链接、短链接或包含帖子链接的分享文案;不要传用户主页链接或 post_id。"New value: +"微博帖子页面链接、头条文章链接(ttarticle/p/show?id=...)、短链接或包含链接的分享文案;文章详情返回文章正文,评论、点赞和转发使用文章关联的微博帖子;不要传用户主页链接或 post_id。"
  2. Changed3 schema fields changed
    • addedOutput schema / properties / items / items / properties / fan_badge
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "fan_level": {
      +          "description": "微博粉丝徽章等级,为正整数;不要与微博会员等级混淆。",
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "fan_type": {
      +          "description": "微博粉丝类型:iron 表示铁粉,gold 表示金粉,diamond 表示钻粉。",
      +          "enum": [
      +            "iron",
      +            "gold",
      +            "diamond"
      +          ],
      +          "type": "string"
      +        },
      +        "icon_url": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "粉丝徽章图标链接;不可用时为 null。"
      +        }
      +      },
      +      "required": [
      +        "fan_type",
      +        "fan_level",
      +        "icon_url"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "评论作者相对于当前帖子作者的粉丝徽章;当前评论未展示徽章或信息无法确认时为 null,不代表该用户一定不是帖子作者的粉丝。"
      +}
    • removedOutput schema / properties / items / items / properties / is_top_fan
      Removed value: -{
      -  "default": false,
      -  "description": "该评论是否展示针对该帖作者的微博铁粉标识。",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "has_replies",
      -  "ip_location",
      -  "image_urls",
      -  "author"
      -]New value: +[
      +  "fan_badge",
      +  "post_id",
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "has_replies",
      +  "ip_location",
      +  "image_urls",
      +  "author"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / is_top_fan
      Added value: +{
      +  "default": false,
      +  "description": "该评论是否展示针对该帖作者的微博铁粉标识。",
      +  "type": "boolean"
      +}
  4. 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",
      -  "comment_count"
      -]New value: +[
      +  "items",
      +  "next_page_token",
      +  "comment_count",
      +  "points"
      +]
  5. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / image_urls
      Added value: +{
      +  "description": "评论图片链接列表;无图片时为空数组。",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "has_replies",
      -  "ip_location",
      -  "author"
      -]New value: +[
      +  "post_id",
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "has_replies",
      +  "ip_location",
      +  "image_urls",
      +  "author"
      +]
  6. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / ip_location
      Added value: +{
      +  "description": "评论发布时的 IP 属地;没有时为空字符串。",
      +  "type": "string"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "post_id",
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "has_replies",
      -  "author"
      -]New value: +[
      +  "post_id",
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "has_replies",
      +  "ip_location",
      +  "author"
      +]
  7. Changed2 schema fields changed
    • changedInput schema / properties / page_token / description
      Previous value: -"微博评论分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一帖子评论分页链路,不能跨帖子复用。"New value: +"微博评论分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一帖子、同一 sort_type 的评论分页链路,不能跨帖子或排序方式复用。"
    • addedInput schema / properties / sort_type
      Added value: +{
      +  "default": "hot",
      +  "description": "微博一级评论排序方式。hot 表示默认热门评论流;time_descending 表示当前可返回范围内最新评论优先。默认 hot。继续翻页时必须与上一页返回 next_page_token 所属的 sort_type 保持一致。",
      +  "enum": [
      +    "hot",
      +    "time_descending"
      +  ],
      +  "type": "string"
      +}
  8. Changed2 schema fields changed
    • addedOutput schema / properties / comment_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "总评论数,含一级评论与回复;不是当前页 items 数量;不可用时为 null。"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "items",
      -  "next_page_token"
      -]New value: +[
      +  "items",
      +  "next_page_token",
      +  "comment_count"
      +]
  9. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark the operation read-only, and the description adds the behavioral detail that only top-level comments are returned and that page_token pagination is supported. The input schema further discloses the article-link special case and opaque token rules, so the behavioral picture is clear.

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?

One compact sentence conveys the operation, input forms, comment level, and pagination with no filler. It is front-loaded and easy to scan.

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?

Given the read-only annotation and a rich input schema plus output schema, the short description is sufficient for an agent to call the tool correctly. It could add an explicit pointer to the by-post_id sibling for agents that already have an ID, but the naming and schema cover most of that gap.

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 parameter descriptions in the schema are unusually detailed (post_url accepted forms, sort_type consistency, page_token opacity). The top-level description adds no parameter-level meaning beyond restating URL/share-text inputs, so 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 ('获取'), a clear resource ('微博帖子一级评论'), and the accepted input forms ('链接、短链接或分享文案'), plus pagination support. This distinguishes it from the by-post-id sibling and reply tool by name and by the top-level comments scope.

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 makes the intended input context explicit: post URLs, short links, or share texts, and specifies '一级评论' so agents know it is not for nested replies. It does not name the by-post-id alternative or explicitly say when not to use it, but the URL-based scope and sibling naming provide clear context.

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