scan_barcode
Look up a product by barcode to identify flagged ingredients for a health condition and check for FDA recalls.
Instructions
Look up a product by barcode (Open Food Facts / Open Beauty Facts), match its ingredients against Clarity's database, return which ingredients are flagged for the given condition lens, AND flag any active FDA recall for the product (recall_flag + recalls[], sourced from FDA — verify via source_url).
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": "scan_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lens | No | Condition lens | all |
| barcode | Yes | UPC/EAN barcode, 6-14 digits |