get_food
Look up a single food by name and receive its complete nutrition data: category, unit, macros, tags, and calories per unit. Uses tolerant matching and returns suggestions when the name is ambiguous.
Instructions
Look up a single food by name and return its full entry with derived calories.
Matching is case-insensitive and tolerant: "chicken breast" resolves "Chicken Breast (Cooked)". A loose match is only accepted when it identifies exactly one food -- "cottage cheese" matches three different products, so it is reported as not-found WITH those three as suggestions rather than guessing.
Args: name: The food name, e.g. "Salmon", "greek yogurt (0% fat)", "Whole Egg".
Returns:
The full entry: name, category, unit, pro, carb, fat, tags, exclude_for,
calories_per_unit. All macro figures are per ONE unit of that food.
On no match, returns {"error": "food_not_found", "suggestions": [...]} rather
than raising or returning nothing. Retry with a suggested name verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||