log_food_entry
Log a food entry with calories and macros for the amount consumed into the Iridium food diary. Specify name, calories, protein, carbs, and fat; optional micros and date.
Instructions
Log a single food entry (cheeseburger, snack, meal, etc.) into the user's Iridium food diary. Required: name + calories + protein + carbs + fat (grams). IMPORTANT: calories and macros MUST be the totals for the amount actually consumed, NOT per-serving values. If the user ate 2 servings of a 200-cal item, send calories: 400. Optional: any micros you are confident about (fiber, sugar, sodium, vitamins, etc.) — omit values you don't know rather than guessing. WATER: do NOT log drinking water here. This tool has no water field — use log_hydration, which is the only thing that feeds the hydration ring the user sees. For a drink that is both food and fluid (shake, juice, milk), log the calories/macros here AND the volume with log_hydration. The entry appears in the iOS app on the next sync (typically within minutes when the app is foregrounded). DATE/TIMEZONE: pass date in any of these forms — 'today', 'yesterday', 'YYYY-MM-DD', 'today T14:00', 'yesterday 14:30', 'YYYY-MM-DDTHH:MM:SS', or a full ISO 8601 timestamp with offset. All bare/relative forms are interpreted in the user's local timezone, so 'yesterday' lands on the user's yesterday — you do not need to know their timezone. DEDUPLICATION: calls with identical arguments within one hour are deduplicated (the same entry is returned, not a new one). If the user genuinely ate the same thing twice and wants two entries, set numberOfServings: 2 on a single call, OR include a differentiating value like a distinct notes line or a more specific date on the second call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | Yes | ||
| date | No | When the user ate. Accepts 'today', 'yesterday', 'YYYY-MM-DD', 'today T14:00', 'yesterday 14:30', 'YYYY-MM-DDTHH:MM:SS', or full ISO 8601 with timezone (e.g. '2026-04-29T14:00:00-06:00'). Bare dates anchor to noon local; relative keywords resolve in the user's timezone. Defaults to now. | |
| iron | No | mg | |
| name | Yes | ||
| zinc | No | mg | |
| brand | No | ||
| carbs | Yes | ||
| fiber | No | ||
| notes | No | ||
| sugar | No | ||
| folate | No | mcg | |
| niacin | No | mg | |
| sodium | No | mg | |
| calcium | No | mg | |
| protein | Yes | ||
| thiamin | No | mg | |
| caffeine | No | mg | |
| calories | Yes | ||
| mealType | No | Defaults to 'snacks' if omitted | |
| 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 |