Get Food
get_foodFull detail for one food by id: nutrition, measures, ingredients if it is a recipe (each quantity counts its unit, a measure of that ingredient, and grams is the weight), data sources, variants, the other versions of the same food, and compared_in, the national food composition databases that also have this food, for a side-by-side comparison. Each nutrition value has its unit and is for nutrition_per_grams grams of the food: 100 g for most foods, one serving for some recipes. Energy (ENERC) is in kJ: divide by 4.184 for kcal, which US labels and users call calories. A nutrient marked estimated was worked out rather than measured or printed for this food, for example from a label's ingredients or from other nutrients: a fair approximation, not an error. Database values describe a typical version of a food, so a specific product can differ.
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": {
"food_id": "<food_id>"
},
"name": "get_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | The food id. |