Nutrition for a packaged product by barcode, with UK traffic lights
get_barcode_nutritionNutrition for a packaged product by barcode, with UK traffic lights. For requests like "is this barcode high in sugar?", "how many calories in this?" after a scan, or "what's the salt in 5000157024886?". Returns per 100 g (or 100 ml) and per serving values, traffic lights for fat, saturates, sugars and salt, Nutri-Score, allergens and a Halal or Not? link for checking the ingredients.
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": "get_barcode_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Barcode digits (8 to 14). | |
| servings | No | Number of servings to total up (0.25 to 20). |