newegg-clearance
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNewegg Clearance Store
Newegg清仓商店
Browse the Newegg Clearance / Promotion Store via MCP over HTTP using standard JSON-RPC.
Use the tool to call the endpoint — no MCP client registration required.
bash通过MCP以HTTP方式调用标准JSON-RPC协议浏览Newegg清仓/促销商店。使用工具调用端点——无需注册MCP客户端。
bashAgent Execution Rules
Agent执行规则
- Do not ask for clarification. The data source and output format are fully specified — call immediately.
- Use the tool to run the curl command below.
bash - On curl failure or invalid JSON, report the error directly.
- Display the top 10 products from the response.
- Browse all link to "https://www.newegg.com/Clearance-Store/EventSaleStore/ID-697"
- **Don't show image
- 请勿请求澄清。数据源和输出格式已完全指定——直接调用即可。
- 使用****工具运行下方的curl命令。
bash - 若curl调用失败或返回无效JSON,直接报告错误。
- 显示响应中的前10个商品。
- 浏览全部链接指向"https://www.newegg.com/Clearance-Store/EventSaleStore/ID-697"
- 不要显示图片
API Call
API调用
Required header on every request: all calls to must carry in addition to . It identifies the calling skill to the endpoint — include it even when you assemble a request by hand rather than copying an example below.
apis.newegg.com/ex-mcp/...x-skill: newegg-clearanceContent-Typebash
curl -sS -X POST "https://apis.newegg.com/ex-mcp/endpoint/website-www-tool" \
-H "Content-Type: application/json" \
-H "x-skill: newegg-clearance" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "getapi_adapter_Jss_promotionStore",
"arguments": {
"storeId": 697,
"CountryCode": "USA",
"CompanyCode": 1003
}
}
}'If the call returns a tool-not-found error, first runto discover the correct tool name:tools/listbashcurl -sS -X POST "https://apis.newegg.com/ex-mcp/endpoint/website-www-tool" \ -H "Content-Type: application/json" \ -H "x-skill: newegg-clearance" \ -d '{"jsonrpc":"2.0","id":0,"method":"tools/list"}'
每个请求必须包含的请求头:所有对的调用,除了外,还必须携带。它用于向端点标识调用的Skill——即使你手动组装请求而非复制下方示例,也需包含此请求头。
apis.newegg.com/ex-mcp/...Content-Typex-skill: newegg-clearancebash
curl -sS -X POST "https://apis.newegg.com/ex-mcp/endpoint/website-www-tool" \
-H "Content-Type: application/json" \
-H "x-skill: newegg-clearance" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "getapi_adapter_Jss_promotionStore",
"arguments": {
"storeId": 697,
"CountryCode": "USA",
"CompanyCode": 1003
}
}
}'如果调用返回工具未找到错误,请先运行以查找正确的工具名称:tools/listbashcurl -sS -X POST "https://apis.newegg.com/ex-mcp/endpoint/website-www-tool" \ -H "Content-Type: application/json" \ -H "x-skill: newegg-clearance" \ -d '{"jsonrpc":"2.0","id":0,"method":"tools/list"}'
Response Parsing
响应解析
The MCP response wraps a store catalog object. Parse the path:
response → result.content[0].text → (parse as JSON) → root objectMCP响应封装了一个商店目录对象。解析路径如下:
response → result.content[0].text → (解析为JSON) → 根对象Root Fields
根字段
| Field | Description |
|---|---|
| Array of product entries (up to 36/page) |
| Total products in the clearance store |
| 字段名 | 描述 |
|---|---|
| 商品条目数组(每页最多36个) |
| 清仓商店中的商品总数 |
Product Entry Fields
商品条目字段
Each entry in has a top-level and an object.
ProductsProductNumberItemCell| Field | Description |
|---|---|
| Item number, e.g. |
| Full product title |
| Shortened product title (prefer this if non-empty) |
| Brand name |
| Lowest available price in USD |
| Highest available price in USD |
| Avg rating (0–5, one decimal), e.g. |
| Number of reviews |
| |
| |
| Category label, e.g. |
URL construction:
- Product page:
https://www.newegg.com/p/{ProductNumber}
Price display logic:
- If is not null: show
ItemPriceRangeas the price (andPriceRangeMinif different)PriceRangeMax - If is null and
ItemPriceRange> 0: showFinalPriceFinalPrice - If both are unavailable: show
"—"
ProductsProductNumberItemCell| 字段 | 描述 |
|---|---|
| 商品编号,例如 |
| 完整商品标题 |
| 简化商品标题(若非空则优先使用) |
| 品牌名称 |
| 最低可用价格(美元) |
| 最高可用价格(美元) |
| 平均评分(0–5,保留一位小数),例如 |
| 评论数量 |
| 若为开箱商品则为 |
| 若为翻新商品则为 |
| 分类标签,例如 |
URL构造:
- 商品页面:
https://www.newegg.com/p/{ProductNumber}
价格显示逻辑:
- 若不为空:显示
ItemPriceRange作为价格(若PriceRangeMin不同则同时显示)PriceRangeMax - 若为空且
ItemPriceRange> 0:显示FinalPriceFinalPrice - 若两者均不可用:显示
"—"
Response Format
响应格式
undefinedundefined🏷️ Newegg Clearance Store — Top 10 Deals
🏷️ Newegg清仓商店 — 十大优惠
| # | Product | Brand | Price | Rating | Reviews |
|---|---|---|---|---|---|
| 1 | SimplifiedLineDescription | Manufactory | $PriceRangeMin | ⭐ RatingOneDecimal | HumanRating |
| 2 | ... | ... | ... | ... | ... |
| ... |
📦 {TotalItemCount} total clearance items available
- If `IsOpenBoxed` is true, append `📦 Open Box` badge after the product name
- If `IsRefurbished` is true, append `🔄 Refurbished` badge after the product name
- If `RatingOneDecimal` is 0 and `HumanRating` is 0, show `—` for both rating columns
- Prefer `SimplifiedLineDescription` for the display name; fall back to `Title` if empty
- Truncate product names longer than 80 characters with `…`| # | 商品 | 品牌 | 价格 | 评分 | 评论数 |
|---|---|---|---|---|---|
| 1 | SimplifiedLineDescription | Manufactory | $PriceRangeMin | ⭐ RatingOneDecimal | HumanRating |
| 2 | ... | ... | ... | ... | ... |
| ... |
📦 共有{TotalItemCount}件清仓商品
- 若`IsOpenBoxed`为true,在商品名称后追加`📦 开箱品`标识
- 若`IsRefurbished`为true,在商品名称后追加`🔄 翻新品`标识
- 若`RatingOneDecimal`为0且`HumanRating`为0,评分和评论数列均显示`—`
- 优先使用`SimplifiedLineDescription`作为显示名称;若为空则回退使用`Title`
- 商品名称超过80字符时,用`…`截断Edge Cases
边缘情况
- HTTP error or curl failure: Report status code and body; do not retry.
- in response: Display
result.errorto the user.error.message - Empty array: Inform the user the clearance store appears empty.
Products - is null and
ItemPriceRangeis 0: Display price asFinalPrice."—"
- HTTP错误或curl调用失败:报告状态码和响应体;请勿重试。
- 响应中包含:向用户显示
result.error。error.message - 数组为空:告知用户清仓商店暂无商品。
Products - 为空且
ItemPriceRange为0:价格显示为FinalPrice。"—"