lookup_barcode
Find packaged foods by entering a UPC/EAN barcode and return matching food records ready for viewing details or adding to a Cronometer diary.
Instructions
Find a packaged food by its UPC/EAN barcode.
Returns matching foods with the same fields as search_foods, so a hit can go straight to get_food_details or add_food_entry.
Args: barcode: The digits printed under the 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": "lookup_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |