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 或搜索词。

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": {
      "sku_id": "<sku_id>"
    },
    "name": "xhs_get_product_reviews"
  }
}

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 / items / description
      Previous value: -"当前页商品评价列表"New value: +"当前页可获取的商品评价列表;不保证覆盖商品展示的全部评价"
    • changedOutput schema / properties / next_page_token / description
      Previous value: -"下一页不透明商品评价分页令牌;items 为空时仍应继续翻页;为空表示没有更多结果或当前无法继续翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一商品 SKU、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"New value: +"下一页不透明商品评价分页令牌;令牌非空时,即使 items 为空也可继续翻页;令牌为空时停止,表示当前没有可继续的下一页令牌。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一商品 SKU、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  3. 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
  4. 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"
  5. 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、商品链接或搜索关键词。"
  6. 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"
  7. 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: +"评价文字内容;图片评价可能没有文字,此时为空字符串"
  8. 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、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  9. 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"
  10. 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"
      +]
  11. 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"
      +]
  12. 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"
      +]
  13. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint/openWorldHint, but the description adds real behavioral context: the returned reviews may not cover everything shown on the product page, and next_page_token must be passed back verbatim. It does not mention rate limits, failure modes, or ordering of the returned page, but the coverage caveat and token hygiene rule are meaningful additions.

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 purpose, then prerequisites, then pagination caveats — a sensible order with no filler sentences. However, the long prohibition list about not truncating or masking the token is duplicated almost verbatim in both the description and the page_token schema entry.

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?

Output schema exists, so return values need no explanation, and the description still covers the two things that schema cannot: obtaining the sku_id and the incomplete-coverage caveat. For a read-only paginated review fetch, nothing an agent needs in order to call it correctly 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 description coverage is 100%, so all four parameters are already documented, including the enum values for sort_type and the full page_token contract. The description only names which parameters exist ('支持 sort_type、has_image 和 page_token 翻页') and repeats the token restriction, adding little beyond the schema.

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 and resource ('根据小红书商品 sku_id 获取商品评价') and immediately rules out the tempting alternatives (商品链接、spu_id、搜索词), which separates it from siblings such as xhs_get_product_detail_by_url and xhs_search_products. An agent can identify the tool's exact scope without opening the schema.

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?

Gives a clear prerequisite chain: use an existing sku_id as-is, otherwise copy items[*].sku_id from xhs_search_products, and it explicitly excludes URLs, spu_id and search terms. It stops short of contrasting with xhs_get_product_detail_by_sku_id or xhs_get_product_review_replies, so the sibling choice remains partly implicit.

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