Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_get_product_reviews

Read-only

根据小红书商品 sku_id 获取商品评价;已有该 ID 时直接使用,否则可从 xhs_search_products 获取;支持 sort_type、has_image 和 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回,不得截断、缩写、掩码或用省略号替换中间内容;不支持商品链接、spu_id 或搜索词。

Input Schema

NameRequiredDescriptionDefault
sku_idYes小红书商品 SKU ID。用户已提供时原样使用;否则从 xhs_search_products 的 items[*].sku_id 原样复制。不支持 spu_id、商品链接或搜索关键词。
has_imageNo是否只返回带图片的商品评价
sort_typeNo商品评价排序方式,可选:general(综合,默认)、time_descending(最新评价优先)general
page_tokenNo商品评价分页令牌。首次请求留空;继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回。page_token 只能用于同一商品 SKU、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。

Output Schema

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

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. Changed26 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: +"ProductReviewAuthor"
    • addedOutput schema / properties / items / items / properties / content / title
      Added value: +"Content"
    • addedOutput schema / properties / items / items / properties / image_items / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / items / items / properties / image_items / items / properties / image_url / title
      Added value: +"Image Url"
    • addedOutput schema / properties / items / items / properties / image_items / items / properties / thumbnail_url / title
      Added value: +"Thumbnail Url"
    • addedOutput schema / properties / items / items / properties / image_items / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / items / items / properties / image_items / items / title
      Added value: +"ProductReviewImageItem"
    • addedOutput schema / properties / items / items / properties / image_items / title
      Added value: +"Image Items"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / logistics_score / title
      Added value: +"Logistics Score"
    • addedOutput schema / properties / items / items / properties / product_score / title
      Added value: +"Product Score"
    • addedOutput schema / properties / items / items / properties / publish_time_text / title
      Added value: +"Publish Time Text"
    • addedOutput schema / properties / items / items / properties / purchased_variants / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / purchased_variants / items / properties / value / title
      Added value: +"Value"
    • addedOutput schema / properties / items / items / properties / purchased_variants / items / title
      Added value: +"ProductReviewVariant"
    • addedOutput schema / properties / items / items / properties / purchased_variants / title
      Added value: +"Purchased Variants"
    • addedOutput schema / properties / items / items / properties / review_id / title
      Added value: +"Review Id"
    • addedOutput schema / properties / items / items / properties / service_score / title
      Added value: +"Service Score"
    • addedOutput schema / properties / items / items / title
      Added value: +"ProductReviewItem"
    • 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: +"ProductReviewsResult"
  4. Changed1 schema field changed
    • changedInput schema / properties / sku_id / description
      Previous value: -"小红书商品 SKU ID;从商品搜索结果中的 sku_id 复制。不支持 spu_id、商品链接或搜索关键词。"New value: +"小红书商品 SKU ID。用户已提供时原样使用;否则从 xhs_search_products 的 items[*].sku_id 原样复制。不支持 spu_id、商品链接或搜索关键词。"
  5. Changed4 schema fields changed
    • changedOutput schema / properties / items / items / properties / author / properties / avatar_url / description
      Previous value: -"评价作者头像链接;没有头像链接时为 null"New value: +"作者头像链接;没有头像链接时为 null"
    • changedOutput schema / properties / items / items / properties / author / properties / name / description
      Previous value: -"评价作者名称;没有作者名时为空字符串"New value: +"作者名称;没有作者名时为空字符串"
    • changedOutput schema / properties / items / items / properties / author / properties / profile_url / description
      Previous value: -"评价作者主页链接;没有主页链接时为 null"New value: +"作者主页链接;没有主页链接时为 null"
    • changedOutput schema / properties / items / items / properties / author / properties / user_id / description
      Previous value: -"评价作者 user_id"New value: +"作者 user_id"
  6. Changed2 schema fields changed
    • changedOutput schema / properties / items / items / properties / author / properties / name / description
      Previous value: -"评价作者名称"New value: +"评价作者名称;没有作者名时为空字符串"
    • changedOutput schema / properties / items / items / properties / content / description
      Previous value: -"评价内容"New value: +"评价文字内容;图片评价可能没有文字,此时为空字符串"
  7. Changed1 schema field changed
    • changedOutput schema / properties / next_page_token / description
      Previous value: -"下一页不透明商品评价分页令牌;为空表示没有更多结果或当前无法继续翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一商品 SKU、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"New value: +"下一页不透明商品评价分页令牌;items 为空时仍应继续翻页;为空表示没有更多结果或当前无法继续翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一商品 SKU、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  8. Changed3 schema fields changed
    • changedOutput schema / properties / items / items / properties / image_items / items / properties / height / description
      Previous value: -"评价图片高度;无法获取时为 0"New value: +"评价原图高度;无法获取时为 0"
    • changedOutput schema / properties / items / items / properties / image_items / items / properties / image_url / description
      Previous value: -"评价图片链接"New value: +"评价原图链接"
    • changedOutput schema / properties / items / items / properties / image_items / items / properties / width / description
      Previous value: -"评价图片宽度;无法获取时为 0"New value: +"评价原图宽度;无法获取时为 0"
  9. 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"
      +]
  10. Changed8 schema fields changed
    • addedOutput schema / properties / items / items / properties / image_items
      Added value: +{
      +  "description": "评价图片列表",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "height": {
      +        "description": "评价图片高度;无法获取时为 0",
      +        "type": "integer"
      +      },
      +      "image_url": {
      +        "description": "评价图片链接",
      +        "type": "string"
      +      },
      +      "thumbnail_url": {
      +        "description": "评价图片缩略图链接;没有缩略图链接时为空字符串",
      +        "type": "string"
      +      },
      +      "width": {
      +        "description": "评价图片宽度;无法获取时为 0",
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "image_url",
      +      "thumbnail_url",
      +      "width",
      +      "height"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / items / items / properties / logistics_score
      Added value: +{
      +  "description": "物流评分,通常为 1-5;0 表示无法获取",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / items / items / properties / product_score
      Added value: +{
      +  "description": "商品评分,通常为 1-5;0 表示无法获取",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / items / items / properties / publish_time_text
      Added value: +{
      +  "description": "评价时间展示文本;可能是相对时间(如 1小时前)、月日(如 08-05)或完整日期(如 2025-06-13);不是 Unix 时间戳,不要自行补全年份或时分秒;无法获取时为空字符串",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / purchased_variants
      Added value: +{
      +  "description": "购买时选择的商品规格列表",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "购买规格名称",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "购买规格值",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / items / items / properties / review_id
      Added value: +{
      +  "description": "评价 ID;无法获取时为空字符串",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / service_score
      Added value: +{
      +  "description": "服务评分,通常为 1-5;0 表示无法获取",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "content",
      -  "like_count",
      -  "author"
      -]New value: +[
      +  "content",
      +  "like_count",
      +  "review_id",
      +  "publish_time_text",
      +  "image_items",
      +  "product_score",
      +  "logistics_score",
      +  "service_score",
      +  "purchased_variants",
      +  "author"
      +]
  11. Changed3 schema fields changed
    • changedInput schema / properties / sort_type / default
      Previous value: -"default"New value: +"general"
    • changedInput schema / properties / sort_type / description
      Previous value: -"商品评价排序方式,可选:default(默认/综合排序)、time_descending(最新评价优先)"New value: +"商品评价排序方式,可选:general(综合,默认)、time_descending(最新评价优先)"
    • changedInput schema / properties / sort_type / enum
      Previous value: -[
      -  "default",
      -  "time_descending"
      -]New value: +[
      +  "general",
      +  "time_descending"
      +]
  12. Added

TDQS

A4.3/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 safety profile is covered. The description adds genuine behavioral context beyond that: pagination must carry the full next_page_token verbatim, with no truncation, abbreviation, masking, or ellipsis substitution — a real failure mode for agents. It stops short of noting rate limits or result-size characteristics.

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?

Front-loaded with the core action and ID sourcing, then pagination constraints, then exclusions — a logical order. The page_token warning is repeated across description and schema, which is slightly redundant but defensible given how commonly agents corrupt tokens.

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?

An output schema exists, so return values need no explanation, and the description covers ID sourcing, pagination continuation, filtering, sorting, and invalid inputs. Minor gap: it does not point to xhs_get_product_review_replies for fetching replies to a review, which would complete the navigation story.

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%, so all four parameters are already documented in the schema, including the sort enum values and the page_token passthrough rule. The description's parameter-level content largely restates the schema, so it earns the baseline rather than exceeding it.

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+resource: retrieve product reviews for an XHS product sku_id. It immediately distinguishes itself from adjacent siblings by ruling out product links, spu_id, and search keywords, and by naming xhs_search_products as the ID source rather than an alternative for the same data.

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?

Explicitly gives the branch condition: use an existing sku_id directly, otherwise obtain it from xhs_search_products. It also enumerates the unsupported input forms (product URL, spu_id, search term), which tells the agent when NOT to call this tool and to route elsewhere.

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