Skip to main content
Glama

Buscar produtos nos marketplaces

search_products
Read-only

Busca produtos por palavra-chave nas APIs dos marketplaces que a conta configurou (Shopee, AliExpress e Amazon, esta com as chaves da Creators API; Kabum e Magalu quando informados em "site"). Filtre por faixa de preço (price_min/price_max) e ordene (sort: price_asc = mais barato primeiro). Cada item traz image_url, a URL da foto do produto, e price como número na moeda de "currency" (ex.: 274.99). Paginação: a resposta traz "count" e "page"; com count igual a limit, normalmente há mais resultados na página seguinte (com filtros ativos, count menor que limit não garante o fim do catálogo). Na busca multi-site, os marketplaces que falharam aparecem em "sites_failed"; a falha não quer dizer que o produto não exista neles.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPágina de resultados (padrão 1) — use para ver mais itens.
siteNoMarketplace a consultar. Se omitido, busca em Shopee/AliExpress/Amazon (os que a conta configurou; veja get_bot_info) e junta os resultados (cada item traz "site"). "kabum" e "magalu" só entram quando informados aqui; o link de afiliado sai com a credencial da conta quando ela tem a loja cadastrada.
sortNoOrdenação: relevance (padrão), price_asc (mais barato), price_desc (mais caro), commission_desc (maior comissão de afiliado), sales_desc (mais vendidos), rating_desc (melhor avaliados), discount_desc (maior desconto).
limitNoMáximo de resultados (1 a 50; padrão 20).
queryYesPalavra-chave / título a buscar.
price_maxNoPreço máximo (na moeda do site, geralmente BRL).
price_minNoPreço mínimo (na moeda do site, geralmente BRL).
site_filtersNoFiltros ESPECÍFICOS do marketplace (use só com "site" fixado). Shopee: { isKeySeller: bool }. AliExpress: { category_ids: "100,200", ship_to_country: "BR", delivery_days: "7" }. Amazon: { searchIndex: "Computers", condition: "New", brand: "Sony", deliveryFlags: ["Prime"], minReviewsRating: 4, minSavingPercent: 20 }.
official_onlyNoSe true, retorna só lojas oficiais (Shopee Mall / AliExpress TMALL). Onde o site não informa, o item é mantido.
commission_minNoComissão mínima, em fração (0.05 = 5%). Filtra produtos que pagam pelo menos essa comissão de afiliado. Shopee e AliExpress retornam comissão; Amazon não.
key_seller_onlyNoSe true, filtra apenas "key sellers" da Shopee — vendedores de alto desempenho selecionados pela própria plataforma. Eles têm menos probabilidade de estar em férias ou com estoque inativo. Use quando a busca retornar muitos produtos de vendedores indisponíveis. Shopee: filtro nativo (isKeySeller). Outros sites: ignorado.

Output Schema

NameRequiredDescriptionDefault
pageNo
countNo
itemsNoProdutos: title, price (número), currency, image_url, affiliate_url, site.
successNo
sites_failedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / site / description
      Previous value: -"Marketplace a consultar. Se omitido, busca em Shopee/AliExpress/Amazon (com conversor ativo — veja get_bot_info) e junta os resultados (cada item traz \"site\"). \"kabum\" e \"magalu\" são opt-in: só buscam quando informados explicitamente (link de afiliado gerado via conversor ativo do bot)."New value: +"Marketplace a consultar. Se omitido, busca em Shopee/AliExpress/Amazon (os que a conta configurou; veja get_bot_info) e junta os resultados (cada item traz \"site\"). \"kabum\" e \"magalu\" só entram quando informados aqui; o link de afiliado sai com a credencial da conta quando ela tem a loja cadastrada."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly/openWorld/non-destructive; the description adds real behavioral context beyond them: multi-site aggregation with a per-item "site" field, the sites_failed list and the warning that a failure does not mean the product is absent, and the pagination caveat that count < limit does not guarantee the end of the catalog when filters are active.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and scope, then filters, then pagination and failure semantics in a logical order. The sentences are long and parenthetical-heavy, which costs a bit of scannability, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, nested-object, open-world search tool, the description covers scope, filtering, ordering, pagination limits and partial-failure behavior. An output schema exists, yet the extra notes on image_url, price typing and sites_failed are genuinely useful rather than redundant.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining price_min/price_max as a range filter, sort price_asc as "mais barato primeiro", and that price is a number in the currency of "currency". It does not add much for limit/page beyond the schema, keeping it at 4 rather than 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Busca produtos por palavra-chave") plus the exact scope: the marketplaces configured on the account, naming Shopee, AliExpress, Amazon (Creators API) and the opt-in Kabum/Magalu. It even points to the sibling get_bot_info for checking configured sites, so an agent can separate this from get_product and convert_links.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use rules: "site" fixes a single marketplace, kabum/magalu only enter when explicitly passed, key_seller_only is recommended "quando a busca retornar muitos produtos de vendedores indisponíveis", and site_filters only with a fixed site. It lacks an explicit statement of when to prefer get_product or convert_links instead, so it stops short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources