Skip to main content
Glama

SocialDataX 小红书 Xiaohongshu XHS RedNote MCP

xhs_get_product_detail_by_url

Read-only

根据小红书商品链接、短链接或分享文案获取商品详情,无需先搜索。已有完整 sku_id 时使用 xhs_get_product_detail_by_sku_id;返回的 sku_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": {
      "url": "<url>"
    },
    "name": "xhs_get_product_detail_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes小红书商品详情链接、短链接或包含商品链接的完整分享文案。不支持笔记链接、博主主页链接、纯分享口令或搜索词。

Output Schema

NameRequiredDescriptionDefault
priceYes当前 SKU 的商品原价,单位:元;不是商品搜索的展示销售价,也不是最终实付价
titleYes商品标题
pointsYes本次成功调用的积分消耗与账户积分余额。
sku_idYes商品 SKU ID
shop_idYes店铺 ID
shippingYes发货信息
seller_idNo店铺关联小红书账号 UID;不是店铺 ID 或经营主体 ID;无法获取时为 null
shop_nameYes店铺名称
assurancesYes商品保障服务列表
sales_textYes平台展示的商品销量文本;没有时为空字符串。带“+”的数量表示下限,不是精确销量;结合 sold_count 解读。
shop_scoreYes店铺评分展示值;没有评分时为空字符串
sold_countYes已售数量;平台以带“+”的千级或万级文本展示时转换为对应整数下限(如“90.2k+ sold”返回 90200、“已售1.2万+”返回 12000),不是精确销量,须结合 sales_text 解读;缺失或无法解析时为 null,不代表零销量;0 表示明确已售 0。
main_imagesYes商品顶部主图/轮播图列表
coupon_priceYes当前 SKU 展示的券后/成交价格,单位:元;不保证是最终实付价
review_countNo平台展示的商品评价总数,不代表评价接口可获取的数量;无法确认时为 null,不代表零评价
stock_statusYes库存状态码;具体码值含义未公开定义,不要自行解释为是否在售或是否可购买
detail_imagesYes商品详情图列表
product_scoreNo商品评分;不是店铺评分或好评率;无法确认时为 null
shop_fans_textYes店铺粉丝数展示值;没有粉丝信息时为空字符串
shop_sold_textYes店铺已售展示值;没有已售信息时为空字符串
specificationsYes商品属性/规格参数列表(name/value),不是可选 SKU 规格组
shop_avatar_urlYes店铺头像链接
selected_variantYes当前选中规格;没有规格时为空字符串

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / review_count / description
      Previous value: -"商品评价总数;无法确认时为 null,不代表零评价"New value: +"平台展示的商品评价总数,不代表评价接口可获取的数量;无法确认时为 null,不代表零评价"
  2. Changed1 schema field changed
    • addedOutput schema / properties / seller_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "店铺关联小红书账号 UID;不是店铺 ID 或经营主体 ID;无法获取时为 null",
      +  "title": "Seller Id"
      +}
  3. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  4. 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
  5. Changed36 schema fields changed
    • addedOutput schema / properties / assurances / title
      Added value: +"Assurances"
    • addedOutput schema / properties / coupon_price / title
      Added value: +"Coupon Price"
    • addedOutput schema / properties / detail_images / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / detail_images / items / properties / image_url / title
      Added value: +"Image Url"
    • addedOutput schema / properties / detail_images / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / detail_images / items / title
      Added value: +"ProductDetailImage"
    • addedOutput schema / properties / detail_images / title
      Added value: +"Detail Images"
    • addedOutput schema / properties / main_images / items / properties / height / title
      Added value: +"Height"
    • addedOutput schema / properties / main_images / items / properties / image_url / title
      Added value: +"Image Url"
    • addedOutput schema / properties / main_images / items / properties / width / title
      Added value: +"Width"
    • addedOutput schema / properties / main_images / items / title
      Added value: +"ProductDetailImage"
    • addedOutput schema / properties / main_images / title
      Added value: +"Main Images"
    • addedOutput schema / properties / price / title
      Added value: +"Price"
    • addedOutput schema / properties / product_score / title
      Added value: +"Product Score"
    • addedOutput schema / properties / review_count / title
      Added value: +"Review Count"
    • addedOutput schema / properties / sales_text / title
      Added value: +"Sales Text"
    • addedOutput schema / properties / selected_variant / title
      Added value: +"Selected Variant"
    • addedOutput schema / properties / shipping / properties / fee / title
      Added value: +"Fee"
    • addedOutput schema / properties / shipping / properties / location / title
      Added value: +"Location"
    • addedOutput schema / properties / shipping / properties / text / title
      Added value: +"Text"
    • addedOutput schema / properties / shipping / title
      Added value: +"ProductDetailShipping"
    • addedOutput schema / properties / shop_avatar_url / title
      Added value: +"Shop Avatar Url"
    • addedOutput schema / properties / shop_fans_text / title
      Added value: +"Shop Fans Text"
    • addedOutput schema / properties / shop_id / title
      Added value: +"Shop Id"
    • addedOutput schema / properties / shop_name / title
      Added value: +"Shop Name"
    • addedOutput schema / properties / shop_score / title
      Added value: +"Shop Score"
    • addedOutput schema / properties / shop_sold_text / title
      Added value: +"Shop Sold Text"
    • addedOutput schema / properties / sku_id / title
      Added value: +"Sku Id"
    • addedOutput schema / properties / sold_count / title
      Added value: +"Sold Count"
    • addedOutput schema / properties / specifications / items / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / specifications / items / properties / value / title
      Added value: +"Value"
    • addedOutput schema / properties / specifications / items / title
      Added value: +"ProductDetailSpecification"
    • addedOutput schema / properties / specifications / title
      Added value: +"Specifications"
    • addedOutput schema / properties / stock_status / title
      Added value: +"Stock Status"
    • addedOutput schema / properties / title / title
      Added value: +"Title"
    • addedOutput schema / title
      Added value: +"ProductDetailResult"
  6. Changed2 schema fields changed
    • addedOutput schema / properties / product_score
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "商品评分;不是店铺评分或好评率;无法确认时为 null"
      +}
    • addedOutput schema / properties / review_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "商品评价总数;无法确认时为 null,不代表零评价"
      +}
  7. Changed1 schema field changed
    • changedOutput schema / properties / sold_count / description
      Previous value: -"已售数量;平台以带“+”的万级文本展示时转换为对应整数下限(如“已售1万+”返回 10000、“已售1.2万+”返回 12000),不是精确销量,须结合 sales_text 解读;缺失或无法解析时为 null,不代表零销量;0 表示明确已售 0。"New value: +"已售数量;平台以带“+”的千级或万级文本展示时转换为对应整数下限(如“90.2k+ sold”返回 90200、“已售1.2万+”返回 12000),不是精确销量,须结合 sales_text 解读;缺失或无法解析时为 null,不代表零销量;0 表示明确已售 0。"
  8. Added

TDQS

A4.5/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 is covered; the description adds real workflow information beyond them — that no prior search step is required and that the returned sku_id is reusable downstream. It does not mention failure modes for unsupported link types or rate-limit behavior, but the schema description covers the rejection cases.

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?

Two short sentences, front-loaded with the capability, then the disambiguation rule, then the chaining hint. Every clause carries information the agent needs; nothing is padding.

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?

A single-parameter read tool whose annotations declare its safety profile, whose schema fully specifies the input, and which has an output schema, so return values need not be described. The description supplies the remaining routing and chaining context, leaving no material gap for correct invocation.

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% and the single url parameter's description already enumerates the accepted forms and the unsupported ones (note links, profile links, share codes, search terms), which the tool description largely repeats. The only added semantic is that the URL can be used directly without a preceding search, so baseline 3 applies.

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 and resource (get product detail) plus the accepted input forms (product link, short link, share text), and explicitly distinguishes itself from the sibling xhs_get_product_detail_by_sku_id by the identifier used. An agent can route between the two URL/sku_id variants without opening either schema.

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?

Gives an explicit alternative and the condition that selects it: 'when you already have a complete sku_id, use xhs_get_product_detail_by_sku_id'. It also removes a common false precondition ('no need to search first') and tells the agent where the output flows next (sku_id feeds the product review tools).

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