Skip to main content
Glama

lookup_ean

Retrieves product reference data by EAN/GTIN code, using Open Food Facts and web search for codes not in standard databases. Returns candidate titles and URLs for retailer validation.

Instructions

Busca dados de referência de um produto pelo código EAN/GTIN. Fontes: (1) Open Food Facts (alimentos), (2) busca web (DuckDuckGo) quando o EAN não está nas bases — comum em moda/marca própria BR. IMPORTANTE: a busca web prioriza o EAN NU (mostra o que o código realmente é); product_hint é opcional e só usado como segunda query de validação, NUNCA para sobrepor o resultado do EAN. Retorna candidates com título/URL reais para o lojista validar — o agente NUNCA deve afirmar que um candidato É o produto sem confirmação do lojista.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eanYesCódigo EAN/GTIN de 8, 12, 13 ou 14 dígitos
product_hintNoTermo do produto (título/marca) — usado apenas como 2ª query de validação; NUNCA sobrepõe o EAN
Behavior5/5

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

With no annotations provided, the description carries full disclosure burden and does so thoroughly. It reveals multi-step fallback behavior, prioritization of the bare EAN, optional role of product_hint, return format (candidates with title/URL), and a crucial guardrail: the agent must never claim a candidate is the product without merchant confirmation. This is rich, safety-relevant behavioral context.

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

Conciseness5/5

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

The description is compact, front-loaded with purpose, and every clause adds value: sources, fallback reason, parameter constraint, and agent guardrail. Despite its length, it is dense and free of fluff, making it both concise and structured for quick parsing.

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?

Since there is no output schema, the description compensates by explaining the return shape (candidates with title/URL) and the need for merchant validation. It covers tool scope, data sources, fallback logic, and a critical safety instruction, making it complete for an agent to invoke correctly within the given sibling context.

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

Parameters3/5

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

The input schema already provides 100% coverage for both parameters, describing the EAN length and product_hint's role. The description adds context about sources but largely repeats the product_hint constraint already present in the schema. Therefore, no significant new parameter-level meaning is added beyond the schema baseline.

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?

The description opens with a clear verb-resource pair: 'Busca dados de referência de um produto pelo código EAN/GTIN' (Looks up reference data for a product by EAN/GTIN code). It further distinguishes itself by detailing two sources (Open Food Facts and web search) and sets it apart from sibling tools like search_images or analyze_url, which target different actions.

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?

The description explains a fallback sequence: use Open Food Facts first, then fall back to web search when the EAN is not in databases, with context about why (common for fashion/private label BR). It gives clear guidance on product_hint usage and explicitly warns not to override the EAN with it. No explicit alternative tool comparison, but the context is sufficient for deciding when to invoke this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosnunesjr1/catalog-intelligence-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server