linkfox-mercado-product-selection
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMercado Libre Product Selection
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, , and the skill selects one of 24 supported values with matching .
POST /lingdong/calltoolNamearguments本技能通过LinkFox网关查询Mercado Libre(美客多)的商品、类目、关键词、品类、趋势、店铺、评论、汇率及套餐用量数据。网关提供统一路由,技能会从24个支持的中选择匹配的工具,并传入对应的参数。
POST /lingdong/calltoolNameargumentsCore Concepts
核心概念
- Call only . Do not call the upstream XP-MCP server directly, and do not ask the user for upstream
${LINKFOX_TOOL_GATEWAY}/lingdong/call/secret-key— upstream credentials are owned by the backend.X-API-Key - The request body is always . The script takes this whole object as a single JSON argument.
{"toolName":"...","arguments":{...}} - Field names inside must match
argumentsexactly, including camelCase names such asreferences/mercado-tool-reference.md,siteId,itemId,productId,categoryId,runDate,runMonth,pageNo.pageSize - Read first when presenting results. Read
datawhencontentTextis text or ambiguous. Showdataonly when the user asks for raw diagnostics.rawResponse - Paid tools currently cost tokens per call; free tools cost
16000. Trust the backend0field.costToken
- 仅调用。请勿直接调用上游XP-MCP服务器,也不要向用户索要上游
${LINKFOX_TOOL_GATEWAY}/lingdong/call/secret-key——上游凭证由后端保管。X-API-Key - 请求体固定为格式,脚本会将整个对象作为单个JSON参数传入。
{"toolName":"...","arguments":{...}} - 内的字段名必须与
arguments完全一致,包括references/mercado-tool-reference.md、siteId、itemId、productId、categoryId、runDate、runMonth、pageNo等驼峰命名的字段。pageSize - 展示结果时优先读取字段;若
data为文本或内容不明确,则读取data字段;仅当用户要求原始诊断信息时,才展示contentText字段。rawResponse - 付费工具每次调用消耗16000积分,免费工具消耗0积分,请以后端返回的字段为准。
costToken
Reference Files
参考文档
- : LinkFox gateway contract, request/response structure, error codes, curl example, and Feedback API.
references/api.md - : detailed Chinese reference for the 24 Mercado Libre tools — parameters, site IDs, pagination, sorting, and billing status.
references/mercado-tool-reference.md
- :LinkFox网关契约、请求/响应结构、错误码、curl示例及反馈API说明。
references/api.md - :24个Mercado Libre工具的详细中文参考文档,包含参数、站点ID、分页、排序及计费状态说明。
references/mercado-tool-reference.md
Tool Selection
工具选择
| User intent | Use these tools |
|---|---|
| Product detail, product sales history, product search | |
| Catalog/product page detail, catalog sales history, catalog search | |
| Daily/monthly hot keywords and reverse traffic keywords | |
| Category lookup before paid analysis | |
| Category brand, item, seller, new item, price, sales, sold-history, statistics, warehouse distribution | |
| Seller search | |
| Product reviews | |
| Exchange rate and package usage | |
Free tools: , , , , . All others are paid.
categorySearchcategorySmallSearchreviewSearchrateInfomyUsage| 用户意图 | 适用工具 |
|---|---|
| 商品详情、商品销量历史、商品搜索 | |
| 类目详情、类目销量历史、类目搜索 | |
| 日/月度热门关键词、流量词反查 | |
| 付费分析前的类目查询 | |
| 类目品牌、商品、店铺、新品、价格、销量、销售历史、统计数据、仓库分布 | |
| 店铺搜索 | |
| 商品评论 | |
| 汇率及套餐用量 | |
免费工具:、、、、,其余均为付费工具。
categorySearchcategorySmallSearchreviewSearchrateInfomyUsageParameter Guide
参数指南
- (string, required): one of the 24 tools above.
toolName - (object, required): the tool's parameter object. Must be a JSON object, not an array/string/number. The backend strips
arguments/uId/uidand trims empty values.memberId - Sites: (Mexico),
MLM(Brazil),MLB(Argentina),MLA(Chile),MLC(Colombia — only for tools whose reference explicitly lists it).MCO - When the user gives a category name instead of a , call
categoryIdorcategorySearchfirst, then use the returned category ID for paid trend/product/catalog tools.categorySmallSearch - takes
reviewSearchonly (noitemId).siteIdtakesmyUsage.{} - 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.
- (字符串,必填):上述24个工具之一。
toolName - (对象,必填):工具的参数对象,必须是JSON对象,不能是数组/字符串/数字。后端会自动移除
arguments/uId/uid字段,并清空空值。memberId - 站点:(墨西哥)、
MLM(巴西)、MLB(阿根廷)、MLA(智利)、MLC(哥伦比亚——仅适用于参考文档中明确列出该站点的工具)。MCO - 若用户提供的是类目名称而非,需先调用
categoryId或categorySearch获取类目ID,再将该ID用于付费的趋势/商品/类目工具。categorySmallSearch - 仅需传入
reviewSearch(无需itemId),siteId无需传入任何参数(即myUsage)。{} - 对于宽泛的调研请求,需通过站点、类目、关键词、日期/月份、分页、价格、销量或排序筛选来缩小付费调用范围。避免进行与用户目标无关的探索性付费调用。
调用方式
调用方式
- API 端点:(完整参数/响应/错误码见
POST /lingdong/call)references/api.md - Python 脚本:
python scripts/linkfox_mercado_product_selection.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-mercado-product-selection-<timestamp>.json为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前 3 条样本)costToken - 加 强制全量打印到 stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
jqConvertFrom-Json- API 端点:(完整参数/响应/错误码见
POST /lingdong/call)references/api.md - Python 脚本:
python scripts/linkfox_mercado_product_selection.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-mercado-product-selection-<timestamp>.json为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前 3 条样本)costToken - 加 强制全量打印到 stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
jqConvertFrom-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
undefinedFree: search Mexico categories by name
Free: search Mexico categories by name
python scripts/linkfox_mercado_product_selection.py '{"toolName":"categorySearch","arguments":{"siteId":"MLM","searchText":"Auriculares"}}'
python scripts/linkfox_mercado_product_selection.py '{"toolName":"categorySearch","arguments":{"siteId":"MLM","searchText":"Auriculares"}}'
Paid: product detail for a real MLM item
Paid: product detail for a real MLM item
python scripts/linkfox_mercado_product_selection.py '{"toolName":"itemInfo","arguments":{"siteId":"MLM","itemId":"MLM4979447466"}}'
python scripts/linkfox_mercado_product_selection.py '{"toolName":"itemInfo","arguments":{"siteId":"MLM","itemId":"MLM4979447466"}}'
Free: my plan usage (no arguments)
Free: my plan usage (no arguments)
python scripts/linkfox_mercado_product_selection.py '{"toolName":"myUsage","arguments":{}}'
python scripts/linkfox_mercado_product_selection.py '{"toolName":"myUsage","arguments":{}}'
Paid: monthly hot keywords for Brazil, 2026-06
Paid: monthly hot keywords for Brazil, 2026-06
python scripts/linkfox_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_mercado_product_selection.py '{"toolName":"keywordMonthSearch","arguments":{"siteId":"MLB","runMonth":"202606"}}'
在PowerShell中,同样使用单引号包裹JSON;若引号处理麻烦,可将请求体写入文件,加载后通过`--inline`参数传入,或使用`ConvertTo-Json`构建参数。Display Rules
展示规则
- Present the returned data clearly without inventing unsupported business conclusions.
- Preserve the meaning and important field names from results; translate labels only when it improves readability.
- For large arrays or time series, summarize the visible slice and read only needed fields from the persisted JSON file.
- 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.
- Never expose internal LinkFox API keys, upstream secrets, or full sensitive raw payloads in user-facing output.
- 清晰展示返回数据,不得编造无依据的业务结论。
- 保留结果的含义及重要字段名;仅当提升可读性时才翻译标签。
- 对于大型数组或时间序列数据,需对可见部分进行摘要说明,并从已保存的JSON文件中仅读取所需字段。
- 若返回“无数据”或业务层面的失败信息,需说明该结果由上游Mercado数据提供商返回;仅当封装响应中包含实际错误时,才可标注为系统故障。
- 不得在面向用户的输出中暴露内部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/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 ; use real responses and
dataas the source of truth instead of forcing a single table schema.references/api.md
- LinkFox路由是统一的后端网关,本技能不为每个单独发布HTTP端点。
toolName - 必填字段校验在后端完成,相关规则也记录在中。
references/mercado-tool-reference.md - 付费工具按后端调用次数计费,即使上游返回的业务结果为空。
- 不同工具的响应结构不同。大多数工具的业务结果以文本形式返回在字段中;请以实际响应和
data为依据,不要强制统一为表格格式。references/api.md
User Expression & Scenario Quick Reference
用户表述与场景速查
| User says | Likely action |
|---|---|
| "查这个美客多商品", "商品详情", "销量历史" | Use |
| "搜墨西哥站耳机", "筛选商品" | Use |
| "官链", "catalog", "目录链接" | Use a |
| "关键词热搜", "月度词", "流量词反查" | Use |
| "类目趋势", "新品机会", "销量分布", "品牌排行" | Resolve |
| "店铺", "seller" | Use |
| "评论", "reviews" | Use |
| "汇率", "套餐用量" | Use |
| 用户表述 | 对应操作 |
|---|---|
| "查这个美客多商品"、"商品详情"、"销量历史" | 使用 |
| "搜墨西哥站耳机"、"筛选商品" | 使用 |
| "官链"、"catalog"、"目录链接" | 使用 |
| "关键词热搜"、"月度词"、"流量词反查" | 使用 |
| "类目趋势"、"新品机会"、"销量分布"、"品牌排行" | 先获取 |
| "店铺"、"seller" | 使用 |
| "评论"、"reviews" | 使用 |
| "汇率"、"套餐用量" | 使用 |
积分消耗规则
积分消耗规则
消耗 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 ; do not interrupt the user's task and do not report secrets, private data, or complete large responses.
references/api.mdFor more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
当技能行为、文档或结果展示不符合用户意图,用户表达赞扬或不满,或存在明确的改进方向时,需自动检测并通过反馈API提交反馈。请遵循的要求;请勿中断用户任务,也不得上报机密信息、私人数据或完整的大型响应。
references/api.md如需更多高质量、专业的跨境电商技能,请访问LinkFox Skills。