food_barcode
Look up a packaged food product by barcode (EAN/UPC) in Open Food Facts: name, brand, quantity, ingredients, allergens, Nutri-Score, NOVA group, key nutrients per 100 g and whether the database carries a halal label tag. Returns 404 (not charged) if the product is unknown. Price $0.005 USDC per call (x402, Base).
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": {
"code": "<code>"
},
"name": "food_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Barcode digits (8 to 14) |