Skip to main content
Glama

lookupBarcodeEanUpc

Global GTIN, EAN-13, UPC, and ISBN barcode lookup returning exact product specs, weight, brand, and category. Use when resolving a numeric 8-to-14 digit GTIN, UPC, EAN-13, or ISBN barcode into standardized catalog metadata, brand, package weight (grams), and dimensions. Do not use for live Amazon BuyBox pricing (use getEcommercePricing) or customs tariff duties (use lookupHsTariffDuty).

Input Schema

NameRequiredDescriptionDefault
barcodeYesNumeric 8 to 14 digit GTIN, UPC-A, EAN-13, or ISBN-13 barcode string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / barcode / examples
      Added value: +[
      +  "0194252099995"
      +]
    • addedInput schema / properties / barcode / maxLength
      Added value: +14
    • addedInput schema / properties / barcode / minLength
      Added value: +8
    • addedInput schema / properties / barcode / pattern
      Added value: +"^[0-9]{8,14}$"
  2. Changed1 schema field changed
    • changedInput schema / properties / barcode / description
      Previous value: -"8 to 14 digit UPC, EAN, GTIN, or ISBN code"New value: +"Numeric 8 to 14 digit GTIN, UPC-A, EAN-13, or ISBN-13 barcode string."
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden; it does usefully enumerate what comes back (product specs, brand, package weight in grams, dimensions, category). However it says nothing about failure behavior for unknown barcodes, coverage/regional limits, auth or rate limits, or whether results are cached — meaningful gaps for a no-annotation tool.

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 outcome, then usage, then exclusions — a logical order an agent can scan. Minor redundancy: the GTIN/EAN/UPC/ISBN list is repeated in near-identical form across the first and second sentences, and the 8-14 digit range appears twice.

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 one-parameter lookup with no output schema, the description is nearly sufficient: it names the return fields so the agent knows what it gets back without a schema. The remaining gap is unspecified behavior when a barcode is not found in the catalog, which matters for retry/fallback decisions.

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?

Schema description coverage is 100% and the single parameter already declares the 8-14 digit numeric pattern with an example, so the schema does the heavy lifting. The description restates the accepted formats and the digit range, adding only mild reinforcement rather than new meaning.

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 (lookup) and resource (barcode/GTIN) and immediately enumerates the identifier formats it accepts plus the payload it returns (specs, weight, brand, category). It also names the two sibling tools it is not, so an agent can separate it from getEcommercePricing and lookupHsTariffDuty without opening any schema.

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

Usage Guidelines5/5

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

Explicitly states the trigger condition ('resolving a numeric 8-to-14 digit GTIN, UPC, EAN-13, or ISBN barcode into standardized catalog metadata') and explicitly excludes two adjacent use cases by naming the alternative tools to use instead. Both when-to-use and when-not-to-use are covered.

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