linkfox-lanjing-mercado-product-selection

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Lanjing Mercado Libre Product Selection

Lanjing Mercado Libre 商品选品

This skill queries Mercado Libre product, catalog, keyword, category, trend, seller, review, exchange-rate, and plan-usage data through the LinkFox gateway. The gateway exposes one unified route,
POST /lingdong/call
, and the skill selects one of 24 supported
toolName
values with matching
arguments
.
本技能通过LinkFox网关查询Mercado Libre的商品、类目、关键词、分类、趋势、卖家、评论、汇率及套餐用量数据。网关提供统一的路由
POST /lingdong/call
,技能会从24个支持的
toolName
中选择合适的工具,并传入匹配的
arguments
参数。

Core Concepts

核心概念

  • Call only
    ${LINKFOX_TOOL_GATEWAY}/lingdong/call
    . Do not call the upstream Lanjing XP-MCP server directly, and do not ask the user for upstream
    secret-key
    /
    X-API-Key
    — upstream credentials are owned by the backend.
  • The request body is always
    {"toolName":"...","arguments":{...}}
    . The script takes this whole object as a single JSON argument.
  • Field names inside
    arguments
    must match
    references/lanjing-mercado-tool-reference.md
    exactly, including camelCase names such as
    siteId
    ,
    itemId
    ,
    productId
    ,
    categoryId
    ,
    runDate
    ,
    runMonth
    ,
    pageNo
    ,
    pageSize
    .
  • Read
    data
    first when presenting results. Read
    contentText
    when
    data
    is text or ambiguous. Show
    rawResponse
    only when the user asks for raw diagnostics.
  • Paid tools currently cost
    16000
    tokens per call; free tools cost
    0
    . Trust the backend
    costToken
    field.
  • 仅调用
    ${LINKFOX_TOOL_GATEWAY}/lingdong/call
    。请勿直接调用上游蓝鲸XP-MCP服务器,也不要向用户索要上游
    secret-key
    /
    X-API-Key
    ——上游凭证由后端管理。
  • 请求体固定为
    {"toolName":"...","arguments":{...}}
    。脚本将整个对象作为单个JSON参数传入。
  • arguments
    内的字段名必须与
    references/lanjing-mercado-tool-reference.md
    完全匹配,包括驼峰式命名如
    siteId
    itemId
    productId
    categoryId
    runDate
    runMonth
    pageNo
    pageSize
  • 展示结果时优先读取
    data
    字段。当
    data
    为文本或内容不明确时,读取
    contentText
    字段。仅当用户要求原始诊断信息时,才展示
    rawResponse
  • 当前付费工具每次调用消耗
    16000
    积分;免费工具消耗
    0
    积分。以后端返回的
    costToken
    字段为准。

Reference Files

参考文件

  • references/api.md
    : LinkFox gateway contract, request/response structure, error codes, curl example, and Feedback API.
  • references/lanjing-mercado-tool-reference.md
    : detailed Chinese reference for the 24 Mercado Libre tools — parameters, site IDs, pagination, sorting, and billing status.
  • references/api.md
    :LinkFox网关契约、请求/响应结构、错误码、curl示例及反馈API。
  • references/lanjing-mercado-tool-reference.md
    :24个Mercado Libre工具的详细中文参考文档——包含参数、站点ID、分页、排序及计费状态。

Tool Selection

工具选择

User intentUse these tools
Product detail, product sales history, product search
itemInfo
,
itemHistory
,
itemSearch
Catalog/product page detail, catalog sales history, catalog search
catalogInfo
,
catalogHistory
,
catalogSearch
Daily/monthly hot keywords and reverse traffic keywords
keywordDateSearch
,
keywordMonthSearch
,
keywordReverse
Category lookup before paid analysis
categorySearch
,
categorySmallSearch
Category brand, item, seller, new item, price, sales, sold-history, statistics, warehouse distribution
trendBrandTopBrand
,
trendBrandTopItem
,
trendBrandTopSeller
,
trendNewItems
,
trendPrice
,
trendSale
,
trendSoldHis
,
trendStatistical
,
trendStoreInventoryType
Seller search
sellerSearch
Product reviews
reviewSearch
Exchange rate and package usage
rateInfo
,
myUsage
Free tools:
categorySearch
,
categorySmallSearch
,
reviewSearch
,
rateInfo
,
myUsage
. All others are paid.
用户意图使用工具
商品详情、商品销售历史、商品搜索
itemInfo
itemHistory
itemSearch
类目/商品页面详情、类目销售历史、类目搜索
catalogInfo
catalogHistory
catalogSearch
每日/月度热搜关键词及流量词反查
keywordDateSearch
keywordMonthSearch
keywordReverse
付费分析前的类目查询
categorySearch
categorySmallSearch
类目品牌、商品、卖家、新品、价格、销量、销售历史、统计数据、仓库分布
trendBrandTopBrand
trendBrandTopItem
trendBrandTopSeller
trendNewItems
trendPrice
trendSale
trendSoldHis
trendStatistical
trendStoreInventoryType
卖家搜索
sellerSearch
商品评论
reviewSearch
汇率及套餐用量
rateInfo
myUsage
免费工具:
categorySearch
categorySmallSearch
reviewSearch
rateInfo
myUsage
。其余均为付费工具。

Parameter Guide

参数指南

  • toolName
    (string, required): one of the 24 tools above.
  • arguments
    (object, required): the tool's parameter object. Must be a JSON object, not an array/string/number. The backend strips
    uId
    /
    uid
    /
    memberId
    and trims empty values.
  • Sites:
    MLM
    (Mexico),
    MLB
    (Brazil),
    MLA
    (Argentina),
    MLC
    (Chile),
    MCO
    (Colombia — only for tools whose reference explicitly lists it).
  • When the user gives a category name instead of a
    categoryId
    , call
    categorySearch
    or
    categorySmallSearch
    first, then use the returned category ID for paid trend/product/catalog tools.
  • reviewSearch
    takes
    itemId
    only (no
    siteId
    ).
    myUsage
    takes
    {}
    .
  • For broad research questions, narrow paid calls with site, category, keyword, date/month, pagination, price, sales, or sorting filters. Avoid exploratory paid calls not anchored to the user's goal.
  • toolName
    (字符串,必填):上述24个工具之一。
  • arguments
    (对象,必填):工具的参数对象。必须是JSON对象,不能是数组/字符串/数字。后端会移除
    uId
    /
    uid
    /
    memberId
    字段并清空空值。
  • 站点:
    MLM
    (墨西哥)、
    MLB
    (巴西)、
    MLA
    (阿根廷)、
    MLC
    (智利)、
    MCO
    (哥伦比亚——仅适用于参考文档中明确列出该站点的工具)。
  • 当用户提供类目名称而非
    categoryId
    时,先调用
    categorySearch
    categorySmallSearch
    获取类目ID,再将该ID用于付费的趋势/商品/类目工具。
  • reviewSearch
    仅接受
    itemId
    参数(无需
    siteId
    )。
    myUsage
    无需传入参数(即
    {}
    )。
  • 对于宽泛的研究问题,通过站点、类目、关键词、日期/月份、分页、价格、销量或排序筛选来缩小付费调用的范围。避免进行与用户目标无关的探索性付费调用。

调用方式

调用方式

  • API 端点
    POST /lingdong/call
    (完整参数/响应/错误码见
    references/api.md
  • Python 脚本
    python scripts/linkfox_lanjing_mercado_product_selection.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为)
  • 始终将完整响应写入
    <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-lanjing-mercado-product-selection-<timestamp>.json
    <cwd>
    为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;
    <session>
    取自环境变量
    SESSION_ID
    ,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如
    total
    /
    costToken
    、最大列表字段的长度 + 前 3 条样本)
  • --inline
    强制全量打印到 stdout(同样落盘)
读数据建议:先看摘要判断是否足够;需要具体字段时优先用
jq
ConvertFrom-Json
从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
  • API 端点
    POST /lingdong/call
    (完整参数/响应/错误码见
    references/api.md
  • Python 脚本
    python scripts/linkfox_lanjing_mercado_product_selection.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗积分;同一会话中同一参数组合默认仅调用一次,脚本带有24小时本地缓存。调用失败或返回空结果时,不得自动更换关键词、翻页或修改邮编进行连续试探;如需继续检索,需先向用户说明会产生额外消耗,再由用户决定是否继续。
输出策略(脚本默认行为)
  • 始终将完整响应写入
    <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-lanjing-mercado-product-selection-<timestamp>.json
    <cwd>
    为脚本执行时的工作目录,在Claude Code中即当前项目目录;
    <session>
    取自环境变量
    SESSION_ID
    ,按用户任务自动聚合;禁止写入/tmp目录,若当前目录不可写则报错)
  • 响应体 ≤ 8 KB:写入文件后,将完整JSON打印到标准输出(stdout)
  • 响应体 > 8 KB:写入文件后,标准输出仅打印摘要信息(顶层字段、常见计数如
    total
    /
    costToken
    、最大列表字段的长度+前3条样本)
  • 添加
    --inline
    参数可强制将全量内容打印到标准输出(同时仍会写入文件)
读数据建议:先查看摘要判断信息是否足够;需要具体字段时,优先使用
jq
ConvertFrom-Json
从保存的JSON文件中按需抽取,避免将整份JSON带入上下文。

解决认证和积分问题

解决认证和积分问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
发生以下异常情况时,参照
references/onboarding.md
引导用户解决:

异常情况

异常情况

  • 未配置API Key:环境变量未配置
    LINKFOX_AGENT_API_KEY
    ,也未配置
    LINKFOXAGENT_API_KEY
  • 响应401或402状态码
  • 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
  • 未配置API Key:环境变量未配置
    LINKFOX_AGENT_API_KEY
    ,也未配置
    LINKFOXAGENT_API_KEY
  • 响应401或402状态码
  • 响应提示积分或余额不足:消息包含“积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值”等类似含义的内容。

Usage Examples

使用示例

The single JSON argument is the full payload
{"toolName":...,"arguments":{...}}
.
bash
undefined
单个JSON参数即为完整的请求体
{"toolName":...,"arguments":{...}}
bash
undefined

Free: search Mexico categories by name

免费:按名称搜索墨西哥站点类目

python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"categorySearch","arguments":{"siteId":"MLM","searchText":"Auriculares"}}'
python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"categorySearch","arguments":{"siteId":"MLM","searchText":"Auriculares"}}'

Paid: product detail for a real MLM item

付费:查询墨西哥站点某真实商品的详情

python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"itemInfo","arguments":{"siteId":"MLM","itemId":"MLM4979447466"}}'
python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"itemInfo","arguments":{"siteId":"MLM","itemId":"MLM4979447466"}}'

Free: my plan usage (no arguments)

免费:查询我的套餐用量(无参数)

python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"myUsage","arguments":{}}'
python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"myUsage","arguments":{}}'

Paid: monthly hot keywords for Brazil, 2026-06

付费:查询巴西站点2026年6月的月度热搜关键词

python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"keywordMonthSearch","arguments":{"siteId":"MLB","runMonth":"202606"}}'

On PowerShell, wrap the JSON in single quotes the same way; if quoting is troublesome, write the payload to a file and pass it via `--inline` after loading, or use `ConvertTo-Json` to build the argument.
python scripts/linkfox_lanjing_mercado_product_selection.py '{"toolName":"keywordMonthSearch","arguments":{"siteId":"MLB","runMonth":"202606"}}'

在PowerShell中,同样使用单引号包裹JSON;若引号处理麻烦,可将请求体写入文件,加载后通过`--inline`参数传入,或使用`ConvertTo-Json`构建参数。

Display Rules

展示规则

  1. Present the returned data clearly without inventing unsupported business conclusions.
  2. Preserve the meaning and important field names from results; translate labels only when it improves readability.
  3. For large arrays or time series, summarize the visible slice and read only needed fields from the persisted JSON file.
  4. For "no data" or business-level failure messages, explain that the upstream Mercado data provider returned that result; do not label it as a system outage unless the wrapper response contains an actual error.
  5. Never expose internal LinkFox API keys, upstream secrets, or full sensitive raw payloads in user-facing output.
  1. 清晰呈现返回的数据,不得编造不支持的业务结论。
  2. 保留结果的含义和重要字段名;仅在提升可读性时翻译标签。
  3. 对于大型数组或时间序列数据,先总结可见部分,再从保存的JSON文件中读取所需字段。
  4. 对于“无数据”或业务层面的失败消息,需说明该结果由上游Mercado数据提供商返回;除非包装响应中包含实际错误,否则不得将其标记为系统故障。
  5. 不得在面向用户的输出中暴露内部LinkFox API密钥、上游凭证或完整的敏感原始请求体。

Important Limitations

重要限制

  • The LinkFox route is a unified backend gateway; the skill does not publish separate HTTP endpoints for each
    toolName
    .
  • Required-field validation happens in the backend and is also documented in
    references/lanjing-mercado-tool-reference.md
    .
  • Paid tools charge per backend invocation, even if the upstream business result is empty.
  • Response shapes vary by tool. Most tools return business results as text in
    data
    ; use real responses and
    references/api.md
    as the source of truth instead of forcing a single table schema.
  • LinkFox路由是统一的后端网关;本技能不为每个
    toolName
    单独发布HTTP端点。
  • 必填字段验证由后端完成,相关规则也记录在
    references/lanjing-mercado-tool-reference.md
    中。
  • 付费工具每次后端调用都会收费,即使上游返回的业务结果为空。
  • 不同工具的响应结构不同。大多数工具的业务结果以文本形式返回在
    data
    字段中;请以实际响应和
    references/api.md
    为依据,不要强制统一为单一表格格式。

User Expression & Scenario Quick Reference

用户表述与场景速查

User saysLikely action
"查这个美客多商品", "商品详情", "销量历史"Use
itemInfo
or
itemHistory
"搜墨西哥站耳机", "筛选商品"Use
itemSearch
; use
categorySearch
first if only category text is known
"官链", "catalog", "目录链接"Use a
catalog*
tool
"关键词热搜", "月度词", "流量词反查"Use
keywordDateSearch
,
keywordMonthSearch
, or
keywordReverse
"类目趋势", "新品机会", "销量分布", "品牌排行"Resolve
categoryId
, then use a
trend*
tool
"店铺", "seller"Use
sellerSearch
"评论", "reviews"Use
reviewSearch
"汇率", "套餐用量"Use
rateInfo
or
myUsage
用户表述对应操作
"查这个美客多商品"、"商品详情"、"销量历史"使用
itemInfo
itemHistory
"搜墨西哥站耳机"、"筛选商品"使用
itemSearch
;若仅知道类目名称,先调用
categorySearch
"官链"、"catalog"、"目录链接"使用
catalog*
系列工具
"关键词热搜"、"月度词"、"流量词反查"使用
keywordDateSearch
keywordMonthSearch
keywordReverse
"类目趋势"、"新品机会"、"销量分布"、"品牌排行"先获取
categoryId
,再使用
trend*
系列工具
"店铺"、"seller"使用
sellerSearch
"评论"、"reviews"使用
reviewSearch
"汇率"、"套餐用量"使用
rateInfo
myUsage

积分消耗规则

积分消耗规则

消耗 12 积分。
用户会因积分消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
消耗12积分。
用户会因积分消耗产生费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。

Feedback

反馈

Auto-detect and report feedback via the Feedback API when the skill behavior, documentation, or result presentation does not match the user's intent, when the user expresses praise or dissatisfaction, or when a concrete improvement is visible. Follow
references/api.md
; do not interrupt the user's task and do not report secrets, private data, or complete large responses.

For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
当技能行为、文档或结果展示不符合用户意图,用户表达赞扬或不满,或存在明确的改进方向时,自动通过反馈API检测并提交反馈。请遵循
references/api.md
的要求;不得中断用户任务,不得提交机密信息、私人数据或完整的大响应内容。

如需更多高质量、专业的跨境电商技能,请访问LinkFox Skills