Look up food composition for a meal
lookup_foodsFor an estimated meal, look up all its ingredients together in ONE call using the bundled CoFID 2021 food-composition dataset. Include food and preparation in each query, such as chicken breast grilled or rice white boiled. Returns matching ingredient entries with reference values for all available nutrients, requested portions and source. Select the appropriate match, then call log_meal once without repeated permission for an explicit logging request. Prefer exact supplied labels or already known matches. Does not log food, use a paid AI provider, infer unavailable nutrients or promise exact values for an individual product. No grams/ml conversion is guessed.
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": {
"foods": "<foods>"
},
"name": "lookup_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | Yes | ||
| matches_per_food | No |