Skip to main content
Glama

SocialDataX 微博 Weibo MCP

weibo_get_post_comment_replies_by_comment_id

Read-only

根据 post_id 和一级评论 comment_id 获取微博评论回复;用户已提供完整合法的 ID 组合时直接使用;已有 post_id、帖子链接或分享文案但缺少必需 ID 时,调用对应一级评论工具获取同一条一级评论的 post_id 和 comment_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": {
      "post_id": "<post_id>",
      "comment_id": "<comment_id>"
    },
    "name": "weibo_get_post_comment_replies_by_comment_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYes微博帖子长 ID;调用评论回复工具时必填,需与一级评论 comment_id 同时传入;用户已提供时直接使用,否则从一级评论结果 items[*].post_id 复用。
comment_idYes微博一级评论 ID;用户已提供时直接使用,否则可从一级评论结果 items[*].comment_id 复用;需与同一项 post_id 同时传入,不要传评论回复项的 comment_id。
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. Changed12 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_id / title
      Added value: +"Comment Id"
    • addedOutput schema / properties / items / items / properties / content / title
      Added value: +"Content"
    • changedOutput schema / properties / items / items / properties / fan_badge / anyOf
      Previous value: -[
      -  {
      -    "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"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "fan_level": {
      +        "description": "微博粉丝徽章等级,为正整数;不要与微博会员等级混淆。",
      +        "minimum": 1,
      +        "title": "Fan Level",
      +        "type": "integer"
      +      },
      +      "fan_type": {
      +        "description": "微博粉丝类型:iron 表示铁粉,gold 表示金粉,diamond 表示钻粉。",
      +        "enum": [
      +          "iron",
      +          "gold",
      +          "diamond"
      +        ],
      +        "title": "Fan Type",
      +        "type": "string"
      +      },
      +      "icon_url": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "粉丝徽章图标链接;不可用时为 null。",
      +        "title": "Icon Url"
      +      }
      +    },
      +    "required": [
      +      "fan_type",
      +      "fan_level",
      +      "icon_url"
      +    ],
      +    "title": "WeiboFanBadgeData",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / items / items / properties / image_urls / title
      Added value: +"Image Urls"
    • addedOutput schema / properties / items / items / properties / ip_location / title
      Added value: +"Ip Location"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / items / items / title
      Added value: +"WeiboCommentReplyItemData"
    • 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: +"WeiboCommentRepliesResult"
  4. 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: -[
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "ip_location",
      -  "image_urls",
      -  "author"
      -]New value: +[
      +  "fan_badge",
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "ip_location",
      +  "image_urls",
      +  "author"
      +]
  5. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / is_top_fan
      Added value: +{
      +  "default": false,
      +  "description": "该回复是否展示针对该帖作者的微博铁粉标识。",
      +  "type": "boolean"
      +}
  6. Changed2 schema fields changed
    • changedInput schema / properties / comment_id / description
      Previous value: -"微博一级评论 ID;可从一级评论结果 items[*].comment_id 复用,用于获取该评论下的回复;需与同一项 post_id 同时传入,不要传评论回复项的 comment_id。"New value: +"微博一级评论 ID;用户已提供时直接使用,否则可从一级评论结果 items[*].comment_id 复用;需与同一项 post_id 同时传入,不要传评论回复项的 comment_id。"
    • changedInput schema / properties / post_id / description
      Previous value: -"微博帖子长 ID;调用评论回复工具时必填,需与一级评论 comment_id 同时传入;请从一级评论结果 items[*].post_id 复用,并与同一项 comment_id 一起传入。"New value: +"微博帖子长 ID;调用评论回复工具时必填,需与一级评论 comment_id 同时传入;用户已提供时直接使用,否则从一级评论结果 items[*].post_id 复用。"
  7. 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"
      +]
  8. 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: -[
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "ip_location",
      -  "author"
      -]New value: +[
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "ip_location",
      +  "image_urls",
      +  "author"
      +]
  9. 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: -[
      -  "comment_id",
      -  "content",
      -  "publish_time",
      -  "like_count",
      -  "author"
      -]New value: +[
      +  "comment_id",
      +  "content",
      +  "publish_time",
      +  "like_count",
      +  "ip_location",
      +  "author"
      +]
  10. First observed

TDQS

A4.1/5.0
Behavior4/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 real context beyond that: it discloses the dependency chain for obtaining a valid post_id/comment_id pair and warns that page_token is only valid within the same post's same top-level comment pagination chain. It does not characterize the reply content or ordering, but the output schema covers the return shape.

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 purpose and ID requirements are front-loaded, and the semicolon-separated clauses each carry actionable guidance (direct use, fallback tool, ask user, pagination). It is dense and slightly run-on but free of padding.

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 a full output schema and read-only annotations, the description only needs to cover invocation prerequisites, which it does thoroughly via the ID-acquisition chain and missing-info fallback. Behavior for edge cases such as a comment with no replies is unspecified, but that omission is minor for this tool's complexity.

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%, so the schema already documents all three parameters in detail, including the opaque page_token rules. The description only restates that page_token pagination is supported and reinforces the same-post/same-comment constraint, adding little beyond the schema baseline.

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 and resource (获取微博评论回复 / get Weibo comment replies) and pins down the two required inputs, post_id and the top-level comment_id. It implicitly distinguishes itself from the sibling top-level-comments tool by framing that tool as the source of the IDs, though it never names the sibling explicitly.

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 gives explicit when-to-use rules: use directly when the user supplies a complete valid ID pair, call the corresponding top-level comment tool when only post_id/link/share text exists, and ask the user when post location info is missing. The alternative path and its trigger conditions are spelled out, and pagination support is called out.

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