Check whether a food fits a diet
check_diet_fitReturns fits, does_not_fit or uncertain for one food product and one diet, with the rules that decided it and their sources. Give either a barcode (looked up in Open Food Facts) or the product's ingredient list and label claims. Uncertain results are queued for review by a registered dietitian; treat uncertain as not safe until reviewed. Supports diet 'gluten-free' with mode 'celiac' (strict, default) or 'gluten_avoidance'. PROTOTYPE FOR TESTING: not for use with real people.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_diet_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diet | No | Diet to check against. | gluten-free |
| mode | No | celiac = strict; gluten_avoidance = ignores 'may contain' warnings. | celiac |
| barcode | No | Product barcode (UPC or EAN). Used if no ingredient list is given. | |
| label_claims | No | Claims printed on the package, e.g. 'Gluten-free'. | |
| product_name | No | ||
| ingredients_text | No | Full ingredient list as printed on the package, in English. | |
| allergen_statement | No | The package's 'Contains' or 'May contain' statement, if any. |