git:20260902.68dc494 to git:20260908.ef1f05b
3 added, 2 removed. Audit A to A.
---
name: ecommerce-mercado-market-intelligence
description: Query Mercado Libre public market intelligence through the NexScope research proxy. Use when the user requests this public marketplace or patent data; do not use for seller-console or store-authorized operations.
---
# ecommerce-mercado-market-intelligence
Use this skill to query Mercado Libre public market intelligence. Read [references/api.md](references/api.md) before constructing a request.
## Request contract
- Endpoint: `POST /api/v1/tools/research/damai/call`
- Required: `toolName` and operation-specific `arguments`.
- Optional: documented market, filters, dates, pagination, image, and sort fields for the selected tool.
+ - For local image input, run `scripts/upload_image.py` and use only the confirmed `publicUrl` returned by the Skill Asset workflow.
- Send only documented fields; reject unknown fields before network access.
Minimal example:
```json
{"toolName":"search_categories","arguments":{"market_code":"MLM","query":"celulares","limit":10}}
```
## Workflow
1. Confirm the requested public entity, market, operation, filters, and expected cost.
2. Validate parameters against the API reference. Send only documented business fields.
3. Run `python scripts/damai_mercado_market_intelligence.py '<JSON parameters>' --no-cache` once. Do not probe alternate products, markets, pages, or operations after a paid failure without user approval.
4. Preserve the full response file. Distinguish the NexScope transport envelope from the inner business response and report `traceId` on errors.
5. Summarize only returned facts. Preserve missing values as unknown and identify the requested market and operation.
## Cost
- Do not reuse the source Skill's point value. The actual NexScope charge is calculated after the response as `X-Cost-Token × 0.001041`. For example, `105000 × 0.001041 = 109.305` credits. Record `X-Cost-Credit` when present, but do not use it as the migrated Skill's billing basis. The exact charge is unknown before the first live response.
+ Do not reuse the source Skill's point value. This operation consumes NexScope credits. Preserve `X-Cost-Token` and `X-Cost-Credit` from the response headers as server-reported billing metadata. The exact charge is unknown before the first live response.
## Error and credit handling
- HTTP 401 means NexScope authentication failed. Verify `NEXSCOPE_API_KEY` and `NEXSCOPE_PROXY_BASE`; do not ask the user to paste credentials into chat or operation JSON.
- HTTP 402 means the account lacks credits. Stop the workflow and direct the user to the access-help page below.
- Marketplace authorization failures require the platform-specific account or token to be renewed. Do not substitute a different store, region, or creator automatically.
- For ambiguous network failures, report whether the attempted operation was a read or mutation. Never repeat a mutation without reconciling its upstream state.
## Authentication
Set the `NEXSCOPE_API_KEY` environment variable. If credentials are missing or expire, visit [https://www.nexscope.ai/help/skills-external-access?co-from=skillNS](https://www.nexscope.ai/help/skills-external-access?co-from=skillNS) to top up credits.
## Presenting results
- Lead with the requested entity, market, operation, and the most decision-relevant returned fields.
- Preserve source currencies, units, identifiers, dates, and missing values; do not invent conversions or defaults.
- Keep the full JSON artifact and present compact tables for repeated records when useful.
- - Report the `X-Cost-Token`, calculated NexScope credits, and trace ID from the saved billing metadata.
+ - Report the server-reported `X-Cost-Token`, `X-Cost-Credit`, and trace ID from the saved billing metadata.
## Boundaries and privacy
- This migration is public-data and read-only. Do not invoke seller-console, store-authorized, favorite-write, or account mutation operations.
- One explicit request per call. Do not silently change entity, market, date, operation, or page after an error.
- Redact credentials, signed URLs, cookies, and internal account identifiers from user-facing output and saved request examples.
- Do not claim live, ZIP-install, or production validation unless the matching evidence exists in `references/testing.md`.
## References
- Read [references/api.md](references/api.md) for the complete parameter, response, and error contract.
- Read [references/testing.md](references/testing.md) before executing a live request or claiming a validation level.