Look up a barcode
lookup_barcodeUse this when the user gives a product barcode (EAN or UPC) and wants to know what is in it, such as "what is in 3017620422003?". Returns the product name, brands, quantity, ingredients text, the allergens and traces the entry lists, Nutri-Score, NOVA group, nutrition per 100 g, a data-quality note and the Open Food Facts link. The barcode check digit is verified first. The data is crowd-sourced and may be incomplete or wrong: check the physical label. Not dietary or medical advice.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | EAN or UPC barcode, 8 to 14 digits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| code | No | ||
| name | No | ||
| brands | No | ||
| notice | Yes | ||
| status | Yes | ||
| traces | No | ||
| barcode | Yes | ||
| message | No | ||
| per_100g | No | ||
| quantity | No | ||
| allergens | No | ||
| nova_group | No | ||
| nutriscore | No | ||
| attribution | Yes | ||
| ingredients_text | No | ||
| data_quality_note | No |