Food: nutrition, ingredients and recalls
check_foodReturns nutrition for a food from its barcode (UPC/EAN, via Open Food Facts) or its name (USDA FoodData Central): calories, protein, fat, saturated fat, carbs, sugars, fiber and sodium per 100 g or 100 ml, per serving and for gram amounts when the source uses grams, with % Daily Value from the FDA's reference values. Volume-based foods are not converted to grams without a density. Barcodes also return ingredients, allergens and Nutri-Score. When a brand is known, FDA recall reports matching it are included. A list of items (name or barcode with grams or servings, or menu items with per-serving numbers) plus optional daily targets returns the sum, % Daily Value and what remains of each target. Applies to food nutrition, ingredients or meal totals. A recall-only question is outside this result. Results are nutrition numbers and are not a statement that a food is healthy or safe. Not medical or diet advice. Medicines and cosmetics are outside this result.
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_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Meal items. The result is their sum. | |
| query | No | Food name, with brand when known, e.g. 'Chobani plain Greek yogurt' or 'banana' | |
| fdc_id | No | A USDA FoodData Central id from an earlier result's alternatives | |
| barcode | No | UPC or EAN printed under the bars, 8 to 14 digits | |
| targets | No | The person's own daily or meal targets, for what's left | |
| amount_g | No | Amount eaten in grams, to scale the values | |
| amount_ml | No | Amount of a drink in millilitres, when the source reports per 100 ml |