Lookup Barcode Spec ($0.005 USDC)
lookup_barcode_specResolves 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
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | Single UPC-A (12), EAN-13 (13), EAN-8 (8), or GTIN-14 (14) barcode. Spaces and hyphens are stripped automatically. | |
| bypass_cache | No | Optional. Set true to skip the warm-instance in-memory LRU cache and force a fresh upstream lookup. |