openfoodfacts_product
Retrieve detailed food product information from a barcode via Open Food Facts, including Nutri-Score, ingredients, allergens, and nutrition facts per 100g.
Instructions
Food product sheet from a barcode (EAN/UPC/GTIN) via Open Food Facts: name, brand, quantity, Nutri-Score, NOVA, Eco-Score, nutriments per 100 g, ingredients, allergens, traces, labels, categories, countries, packaging, image. Costs 0.002 USDC on Base per successful call (x402). Without a payment key this tool returns the 402 challenge.
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": "openfoodfacts_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | 8-14 digit barcode |