Skip to main content
Glama

Lookup Barcode Spec ($0.005 USDC)

lookup_barcode_spec
Read-onlyIdempotent

Resolves a single valid UPC-A (12), EAN-13 (13), EAN-8 (8), or GTIN-14 (14) barcode through a deterministic open-catalog cascade (OpenFoodFacts → OpenBeautyFacts → UPCitemdb) backed by a warm-instance LRU cache and UPCitemdb circuit breaker. Returns normalized product specs (title, brand, category, weight, dimensions, images, ingredients), deterministic eBay (<=80 char title + item specifics) and Amazon listing drafts, data_completeness (0.00–1.00), ODbL attribution, and per-provider fallback_trace. Use validate_barcodes (FREE) first to drop invalid scans. Paid: $0.005 USDC on Base via x402 PayAI.

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": {
      "barcode": "<barcode>"
    },
    "name": "lookup_barcode_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodeYesSingle UPC-A (12), EAN-13 (13), EAN-8 (8), or GTIN-14 (14) barcode. Spaces and hyphens are stripped automatically.
bypass_cacheNoOptional. Set true to skip the warm-instance in-memory LRU cache and force a fresh upstream lookup.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive behavior, but the description adds substantial context: the deterministic provider cascade, warm-instance LRU cache, circuit breaker, paid $0.005 USDC cost, payment rail, and what the response includes. This is unusually rich disclosure beyond structured fields, with no contradiction.

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?

It is information-dense and front-loads the core resolution behavior, provider cascade, and return contents. The pricing and prerequisite notes are useful, though the sentence is long and packed with lists rather than cleanly sectioned.

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?

With no output schema, the description carries the burden of explaining returns, and it does so by naming normalized specs, eBay/Amazon listing drafts, data_completeness, ODbL attribution, and fallback_trace. It also explains caching and the cost model, leaving little an agent needs missing.

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%, so both parameters are already documented. The description reinforces accepted barcode formats but adds no syntax or validation detail beyond the schema, making 3 the appropriate 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 gives a specific verb and resource: resolves a single valid barcode in four named formats via a stated provider cascade. It distinguishes itself from validate_barcodes by positioning that sibling as a free pre-check, and 'single' contrasts with batch_lookup_barcodes.

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?

It clearly says to run validate_barcodes (FREE) first to drop invalid scans, and 'single' implies it is not for bulk work. It stops short of naming batch_lookup_barcodes as the explicit alternative for multi-barcode jobs.

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.