find_entries_by_food
Find all diary entries that reference a specific food, with dates and amounts, so you can move or update them before retiring or replacing the food.
Instructions
Every diary entry that references a food, with dates and amounts.
Use before replacing or retiring a food, so its entries can be moved rather than left pointing at something retired.
Cronometer cannot search entries by food, so this reads the diary one day at a time and the range costs a request per day. It defaults to the last 30 days; widen it deliberately.
Args: food_id: The food to look for. start_date: First day as YYYY-MM-DD (defaults to 30 days back). end_date: Last day as YYYY-MM-DD (defaults to today).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | ||
| end_date | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |