lookup_barcode
Look up a packaged food by its UPC/EAN barcode via Open Food Facts. IMPORTANT: the macros are PER 100 g (see serving) — scale to the portion eaten before logging with log_meal. It MAY also carry serving_grams/serving_label for one household serving — offer 'N servings' when present, still scaling the per-100 g macros before logging. Pass the returned source to log_meal to preserve provenance. SAFETY: all calorie and macro values here — including carbohydrates — are ESTIMATES (from USDA / Open Food Facts or the user's own entry), approximate and not lab-measured or per-batch. They are for general nutrition tracking ONLY. Do NOT use them for insulin dosing, carb-counting for a bolus, blood-glucose prediction, or any other medical decision, and do NOT compute a dose or glucose estimate from them. For anything medical, direct the user to the product's own label and their care team.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upc | Yes | UPC/EAN barcode, digits only (8–14 digits). |