lookup_barcode
Look up a packaged food by its UPC/EAN barcode in Open Food Facts. Returns macros per 100 g, a source label ('Open Food Facts'), and, when known, serving_grams/serving_label for one household serving. All calorie and macro values, including carbohydrates, are estimates from USDA FoodData Central, Open Food Facts, the user's own entry or an AI assistant's estimate — approximate, not lab-measured or specific to a package or batch, and not suitable for insulin dosing (including carb counting for a meal bolus), blood-glucose prediction or any other medical decision.
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": {
"upc": "<upc>"
},
"name": "lookup_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upc | Yes | UPC/EAN barcode, digits only (8–14 digits). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidates | Yes |