get_daily_nutrition
Get consumed macro and micronutrient totals for one or more calendar days by specifying a date or day count, returning daily summaries and nutrient details.
Instructions
Get consumed macro and micronutrient totals for one or more days.
Use days=N for calories/nutrients over the last N calendar days. Prefer relative inputs over dates calculated from conversation history.
Returns the amounts actually consumed for the day, covering every nutrient the user tracks in Cronometer (i.e. has a target set for). The response has:
summary: flat macro totals (energy, protein, carbs, net_carbs, fat, fiber, alcohol). A value is null if that macro isn't tracked.
nutrients: the full list of tracked nutrients, each with id, name, amount, unit, category, and confidence.
A nutrient only appears if it's tracked in Cronometer. To surface e.g. saturated fat, cholesterol, or trans fat, set a target for it in Cronometer and it will flow through automatically.
Args: date: Inclusive end date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. days: Number of calendar days, 1–31 (default 1). Includes the end date; days=3 includes today, date='yesterday', days=3 excludes today.
One day returns date, summary, and nutrients. Multiple days return start_date, end_date, and a days list of those objects, oldest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |