find_entries_by_food
Finds every diary entry that references a specific food, with dates and amounts. Use it before replacing or retiring a food so entries can be moved instead of left pointing to a retired item.
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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"food_id": "<food_id>"
},
"name": "find_entries_by_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | ||
| end_date | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |