linkfox-lanjing-mercado-product-selection
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLanjing 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, , 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 Lanjing 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/lanjing-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/lanjing-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/lanjing-mercado-tool-reference.md
- :LinkFox网关契约、请求/响应结构、错误码、curl示例及反馈API。
references/api.md - :24个Mercado Libre工具的详细中文参考文档——包含参数、站点ID、分页、排序及计费状态。
references/lanjing-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_lanjing_mercado_product_selection.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-lanjing-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_lanjing_mercado_product_selection.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话中同一参数组合默认仅调用一次,脚本带有24小时本地缓存。调用失败或返回空结果时,不得自动更换关键词、翻页或修改邮编进行连续试探;如需继续检索,需先向用户说明会产生额外消耗,再由用户决定是否继续。
输出策略(脚本默认行为):
- 始终将完整响应写入(
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-lanjing-mercado-product-selection-<timestamp>.json为脚本执行时的工作目录,在Claude Code中即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入/tmp目录,若当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:写入文件后,将完整JSON打印到标准输出(stdout)
- 响应体 > 8 KB:写入文件后,标准输出仅打印摘要信息(顶层字段、常见计数如/
total、最大列表字段的长度+前3条样本)costToken - 添加参数可强制将全量内容打印到标准输出(同时仍会写入文件)
--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
免费:按名称搜索墨西哥站点类目
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
展示规则
- 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/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 ; use real responses and
dataas the source of truth instead of forcing a single table schema.references/api.md
- LinkFox路由是统一的后端网关;本技能不为每个单独发布HTTP端点。
toolName - 必填字段验证由后端完成,相关规则也记录在中。
references/lanjing-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。