Get product nutrition facts by barcode
get_nutrition_factsRetrieve per-100g and per-serving nutrition facts (kcal, fat, saturated fat, carbohydrates, sugars, fiber, protein, salt, sodium) for a product barcode.
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": "get_nutrition_facts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | Product barcode (e.g. "3017620422003"). |