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

TableJSON 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

TableJSON 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. 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、商品链接或搜索关键词。"
  2. 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"
  3. 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: +"评价文字内容;图片评价可能没有文字,此时为空字符串"
  4. 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、排序、图片筛选和调用方的商品评价链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  5. 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"
  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. 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"
      +]
  8. 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"
      +]
  9. Added

TDQS

A4.7/5.0
Behavior5/5

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

The description adds important behavioral detail beyond the readOnlyHint annotation, especially around pagination: the returned next_page_token must be passed verbatim as the next page_token, and pages cannot be truncated, abbreviated, masked, or replaced with ellipses. This is a concrete, actionable constraint that affects correct invocation.

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?

The description is appropriately brief and well-ordered: it states the core operation first, then explains how to obtain the ID, then the support parameters and pagination behavior, and finally which inputs are not supported. Every sentence adds useful operational information.

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?

Given that an output schema exists and the annotations already signal read-only and open-world behavior, the description covers all essential invocation details: how to get the required id, how to paginate correctly, and what not to pass. No critical usage gap remains.

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 input schema already documents all parameters. The description largely reinforces the same information, such as sku_id provenance and page_token integrity, without adding significant new meaning beyond what the schema provides.

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 explicitly states the tool's function — 根据小红书商品 sku_id 获取商品评价 — giving a specific verb, resource, and identifier type. It also differentiates from other tools by stating what it does not support: 商品链接、spu_id 和搜索词, and it points to xhs_search_products as the source for missing sku_id values.

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?

The description provides a clear usage rule: 已有该 ID 时直接使用,否则可从 xhs_search_products 获取. This tells the agent when to use this tool directly and when to first call another tool. It also gives a strong when-not cursor by rejecting product links, spu_id, and search terms as inputs.

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