update_food_entry
Correct mistakes in previously logged food entries by providing the entry ID and only the fields to update. Omitted fields remain unchanged.
Instructions
Update a food entry you previously logged via log_food_entry — e.g. if the user says "wait, that was 2 cheeseburgers, not 1" or "actually that had no cheese." Required: id (from the prior log_food_entry response). Only pass fields you actually want to change — omitted fields stay as they were. IMPORTANT: if you are changing calories or macros, they must still be the TOTAL for the amount actually consumed, not per-serving. This tool only works on entries that were logged via chat in the first place. If the entry was logged in the Iridium app itself, you will get a 404 — apologise and let the user edit it in the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The UUID returned by log_food_entry | |
| fat | No | ||
| date | No | Same forms as log_food_entry: 'today', 'yesterday', 'YYYY-MM-DD', 'yesterday 14:30', 'YYYY-MM-DDTHH:MM:SS', or full ISO 8601 with timezone. Bare/relative forms resolve in the user's local timezone. | |
| iron | No | mg | |
| name | No | ||
| zinc | No | mg | |
| brand | No | ||
| carbs | No | ||
| fiber | No | ||
| notes | No | ||
| sugar | No | ||
| folate | No | mcg | |
| niacin | No | mg | |
| sodium | No | mg | |
| calcium | No | mg | |
| protein | No | ||
| thiamin | No | mg | |
| caffeine | No | mg | |
| calories | No | ||
| mealType | No | ||
| transFat | No | ||
| vitaminA | No | mcg RAE | |
| vitaminC | No | mg | |
| vitaminD | No | mcg | |
| vitaminE | No | mg | |
| vitaminK | No | mcg | |
| magnesium | No | mg | |
| potassium | No | mg | |
| vitaminB6 | No | mg | |
| riboflavin | No | mg | |
| vitaminB12 | No | mcg | |
| cholesterol | No | mg | |
| saturatedFat | No | ||
| numberOfServings | No | ||
| monounsaturatedFat | No | ||
| polyunsaturatedFat | No |