barcode_lookup
Look up a packaged food by EAN-8, UPC-A, or EAN-13 barcode to retrieve its name, brand, Nutri-Score, NOVA group, allergens, additives, and key nutrients per 100 g.
Instructions
Look up one packaged food on Open Food Facts by barcode (EAN-8, UPC-A, or EAN-13). Returns name, brand, quantity, Nutri-Score, NOVA group, allergens, additives, and key nutrients per 100 g. Use when the user has a barcode. For a name, use product_search.
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": "barcode_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | Barcode printed on the package (EAN-8, UPC-A, or EAN-13). Digits only; spaces and dashes are ignored. |