Skip to main content
Glama

Product Barcode

Product Barcode Lookup

product_barcode_lookup
Read-onlyIdempotent

Look up any retail product by barcode (UPC-A, EAN-13, EAN-8, GTIN-14) and get its name, brand, category, image and size, with the answering source named. Checks the open product databases first (Open Food Facts, Open Beauty Facts, Open Pet Food Facts, Open Products Facts), then UPCitemdb for general merchandise such as electronics, toys, tools and household goods. The GTIN check digit is validated before any lookup. Use for "what product is barcode 885909950805", identifying a scanned UPC, or enriching a product list with brand and category.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "barcode": "885909950805"
    },
    "name": "product_barcode_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyNoA UPCitemdb paid-plan key (user_key) from https://devs.upcitemdb.com/. Without it the free trial endpoint is used, which allows 100 lookups a day per IP; with it the lookup uses your own plan quota.
barcodeYesBarcode digits: UPC-A (12), EAN-13, EAN-8 or GTIN-14. Spaces and dashes are ignored. Example: "885909950805" (an Apple phone) or "3017620422003" (a spread).
sourcesNoauto (default): open databases first, UPCitemdb only if none has the code. open_only: never call UPCitemdb. upcitemdb_only: skip the open databases.

Output Schema

NameRequiredDescriptionDefault
nameNo
sizeNo
brandNo
foundNo
imageNo
modelNo
formatNo
gtin14No
imagesNo
sourceNo
barcodeNo
categoryNo
source_urlNo
descriptionNo
source_nameNo
product_typeNo
sources_checkedNo
upcitemdb_quotaNo
check_digit_validNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavioral detail beyond that: the GTIN check digit is validated before any lookup, the answering source is named in the response, and the paid-vs-free quota model is surfaced. It stops short of describing partial-match or not-found behavior.

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?

Three sentences, front-loaded with the verb and resource, then the resolution strategy, then the use cases. The database list is long but functionally necessary for understanding lookup coverage; 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?

An output schema exists, so return-value explanation is optional, yet the description still names the fields and the source attribution. Combined with the check-digit validation and quota caveats, an agent has everything needed to call this correctly on the first attempt.

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 coverage is 100%, with each of the three parameters — including the _apiKey quota note and the sources enum — fully documented in the schema itself. The description restates the same barcode formats and source order without adding format handling or fallback semantics the schema lacks. Baseline 3 is appropriate when the schema carries the load.

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 ("Look up any retail product by barcode") and enumerates the supported symbologies (UPC-A, EAN-13, EAN-8, GTIN-14) plus the exact return fields (name, brand, category, image, size, source). Nothing overlaps with the sibling tools, all of which are company/tool-discovery oriented, so the scope is unambiguous.

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 three concrete invocation contexts ("what product is barcode X", identifying a scanned UPC, enriching a product list) and the description's source-ordering paragraph explains the internal auto/open_only/upcitemdb_only decision path. There are no explicit exclusions or failure conditions (e.g. what happens for a non-retail or unknown code), which costs it the top score.

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.