Skip to main content
Glama

Consultar produto por código de barras

consultar_codigo_barras
Read-only

Devolve o produto de um código de barras GS1 (GTIN/EAN de 8, 12, 13 ou 14 dígitos): nome, marca, categoria, NCM, CEST, país de registro do prefixo GS1, foto e link da página no SI5 Global. (EN: look up a product by GS1 barcode: name, brand, category, Brazilian NCM/CEST tax codes, GS1 prefix country, photo and page link.)

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": {
      "codigo": "<codigo>"
    },
    "name": "consultar_codigo_barras"
  }
}

Input Schema

NameRequiredDescriptionDefault
codigoYesCódigo de barras, só dígitos (ex.: 7891000002186)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The readOnlyHint and openWorldHint annotations already establish a safe, closed-domain lookup. The description adds useful behavioral context by listing the actual return fields and the accepted barcode lengths, though it does not describe not-found behavior, data freshness, or authentication requirements.

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?

The Portuguese description is front-loaded and efficient, and the English translation is clearly separated. The full English restatement is redundant for readers of Portuguese, but it is not verbose enough to obscure the core instruction.

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 a simple one-parameter read-only lookup with no output schema, the description is complete: it covers the input format, the source (SI5 Global), and every returned field. The annotations cover the safety profile, so no important calling context is missing.

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?

The input schema already documents the single codigo parameter at 100% coverage. The description adds meaning beyond the schema by specifying that the barcode must be GS1 GTIN/EAN and may be 8, 12, 13, or 14 digits.

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 states a specific verb and resource: it returns a product from a GS1 barcode. It names accepted GTIN/EAN formats (8, 12, 13, or 14 digits) and the returned fields, making its barcode-lookup scope distinct from the likely name-search scope of buscar_produtos and the tax-code scope of consultar_ncm.

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 context is clear: use this when you have a GS1 barcode and need product details. It does not explicitly state when to use buscar_produtos or consultar_ncm instead, and it does not list exclusions, so it falls short of full when/when-not/alternatives guidance.

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