Resolves 2–5 UPC/EAN/GTIN barcodes in one call ($0.01 USDC flat on Base via x402 PayAI = $0.002/barcode at 5; billed regardless of hit rate). Usage: call validate_barcodes (free) first to filter invalid scans; use lookup_barcode_spec ($0.005) instead for a single barcode. Pipeline: deduplicates inputs, rejects invalid check digits locally with no upstream call, queries OpenFoodFacts and OpenBeautyFacts concurrently, and routes misses to UPCitemdb (capped at 2 requests/batch under circuit-breaker limits). Parameters: barcodes accepts 2–5 raw strings (spaces/hyphens stripped); bypass_cache (default false) reuses warm-instance LRU cache—set true only to force fresh upstream fetches, consuming rate-limit budget without changing the $0.01 fee. Returns summary (requested, found, not_found, invalid, cache_hits, sources_used) and per-item specs, eBay/Amazon listing drafts, ODbL attribution, and fallback_trace; misses or invalid items return found: false, product: null, and error_code without failing the batch.
lookup_barcode_specread-only
Resolves a single UPC-A (12), EAN-13 (13), EAN-8 (8), or GTIN-14 (14) barcode via a deterministic catalog cascade (OpenFoodFacts → OpenBeautyFacts → UPCitemdb) with a warm-instance LRU cache and UPCitemdb circuit breaker. Paid: $0.005 USDC on Base via x402 PayAI, billed regardless of hit rate. Usage: call validate_barcodes (free) first to drop invalid scans; use batch_lookup_barcodes ($0.01 flat) instead for 2–5 barcodes. Parameters: barcode accepts raw scanned text (spaces/hyphens stripped; invalid check digits fail locally with no upstream call); bypass_cache (default false) reuses cached hits/misses—set true only to force fresh upstream calls against rate limits. Returns normalized product specs, eBay/Amazon listing drafts, data_completeness (0.00–1.00), ODbL attribution, and fallback_trace; misses or invalid inputs return found: false, product: null, error_code, and fallback_trace.
validate_barcodesread-only
Local, no-network GS1 barcode pre-validator ($0.00, no x402 payment). ALWAYS call this before paid lookups to filter bad scans, then route valid results to lookup_barcode_spec (1 barcode) or batch_lookup_barcodes (2–5 barcodes); does not fetch product data. Accepts 1–50 raw strings (1–32 chars each; spaces/hyphens stripped automatically), detects format (EAN-8, UPC-A, EAN-13, GTIN-14), verifies GS1 Modulo-10 check digits, and counts duplicates. Returns { summary: { total_received, valid_unique_count, invalid_count, duplicate_count }, results: [{ input, normalized, gtin14, format, valid, error_code }] } in input order. Malformed barcodes do not throw; they return valid: false with error_code (NON_NUMERIC_CHARACTERS, UNSUPPORTED_LENGTH, or INVALID_CHECK_DIGIT).
Amazon Catalog Draft Preparation from Barcode. Instructs an agent to call lookup_barcode_spec ($0.005), verify GTIN-12/13 format, and map product + listing_draft.amazon_bullet_hints into an Amazon draft.
ebay_listing_prep2 arguments
eBay Listing Preparation from Barcode. Instructs an agent to call lookup_barcode_spec ($0.005) and assemble an eBay listing draft using listing_draft.ebay_title (<=80 chars) and ebay_item_specifics.
reseller_batch_intake2 arguments
Reseller Batch Barcode Intake Workflow. Guides an agent to validate raw scanned barcodes for FREE first, chunk valid codes into batches of max 5, call batch_lookup_barcodes ($0.01), and preserve ODbL attribution.
Resources
spec://fallback-policyapplication/json
Catalog Fallback Cascade, Cache & Circuit-Breaker Policy. Exact provider cascade order (OpenFoodFacts → OpenBeautyFacts → UPCitemdb), batch cap (5), cache TTL (6h), and UPCitemdb circuit-breaker behavior.
spec://llms.txttext/plain
Agent Discovery & Trust Document (/llms.txt). Live mirror of GET /llms.txt accessible over MCP transport.
spec://odbl-attributiontext/markdown
ODbL-1.0 Attribution Guidelines. Open Database License (ODbL-1.0) attribution requirements for OpenFoodFacts and OpenBeautyFacts data.
Canonical Product Spec JSON Schema & Sample Response. Canonical JSON Schema and realistic sample response for lookup_barcode_spec so agents can verify output fields before paying.
Definitions only, never their content. Full lists: prompts, resources.