Check allergens
check_allergensUse this when the user asks whether a product contains certain allergens, such as "does 5449000000996 contain milk or nuts?". Pass the barcode and the allergens to avoid. Returns which are listed as contained, which as possible traces, which are not listed, and whether the entry has no allergen data at all. It reads the entry's allergen tags and ingredients text, which are crowd-sourced and can be wrong: it is a data lookup, not a safety guarantee. The physical label wins.
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>",
"avoid": "<avoid>"
},
"name": "check_allergens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avoid | Yes | Allergens to look for, such as milk, nuts, peanuts, soy, gluten, eggs, fish, shellfish, sesame | |
| barcode | Yes | EAN or UPC barcode, 8 to 14 digits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| name | No | ||
| avoid | No | ||
| brands | No | ||
| notice | Yes | ||
| status | Yes | ||
| barcode | Yes | ||
| message | No | ||
| unknown | No | ||
| contains | No | ||
| not_listed | No | ||
| attribution | Yes | ||
| may_contain | No | ||
| unrecognised | No | ||
| listed_traces | No | ||
| listed_allergens | No | ||
| data_quality_note | No |