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.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, so safety is covered. The description goes further by enumerating the returned payload (nome, marca, categoria, NCM, CEST, país, foto, link), which is genuinely useful since there is no output schema. It omits failure behavior (barcode not found), keeping it from a 5.

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?

One front-loaded sentence that leads with the action and then the input format and output fields; no filler. The trailing field list makes it slightly dense, but every element earns its place.

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

Completeness4/5

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

For a single-parameter read-only tool with no output schema, the description compensates well by listing return fields and input formats. Only error/not-found handling is unaddressed, a minor gap.

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, but the description adds real meaning the schema lacks: the accepted GS1 variants and digit lengths (8/12/13/14), clarifying which code formats are valid. That is more than restating the single 'codigo' property.

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

Purpose4/5

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

States a specific verb ("Devolve") and resource (produto) and pins down the exact input domain (GS1 GTIN/EAN de 8, 12, 13 ou 14 dígitos), so an agent immediately knows what it retrieves. It does not, however, differentiate itself from the sibling buscar_produtos, so it falls short of a 5.

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

Usage Guidelines3/5

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

The usage is strongly implied — you call this when you hold a barcode rather than a name — but the description never states when to prefer it over buscar_produtos or consultar_ncm, and names no exclusions. Implied but not explicit 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