Log nutrition
log_nutritionLog a day of nutrition — day totals plus optional food-by-food line items. Re-sending the same date replaces that day.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat_g | No | Total fat in grams | |
| notes | No | Notes | |
| carbs_g | No | Total carbs in grams | |
| entries | No | Food-by-food line items. Each: {name, calories, protein_g, carbs_g, fat_g, fiber_g, sugar_g, sodium_mg, consumed_at "HH:MM"} | |
| fiber_g | No | Total fiber in grams | |
| sugar_g | No | Total sugar in grams | |
| calories | No | Total calories for the day | |
| log_date | Yes | Date (Y-m-d) | |
| protein_g | No | Total protein in grams | |
| sodium_mg | No | Total sodium in mg | |
| is_complete | No | False when the day was only partially logged — excluded from averages |