add_repeat_item
Set up recurring food entries that automatically log on selected days. Choose a food, quantity, and days of week to keep your nutrition diary consistent without manual re-entry.
Instructions
Add a recurring food entry that auto-logs on selected days.
Quantity is in default servings for the food (e.g., for coffee where the default serving is 1 cup, quantity=12 means 12 cups).
Use search_foods to find food_id and food_source_id.
Args: food_id: Numeric food ID from search_foods results. food_source_id: Food source ID from search_foods results. quantity: Number of default servings. food_name: Display name for the food. diary_group: Diary group name (case-insensitive) or 0-based index. Names are user-configured — call list_diary_groups to see this account's groups. Defaults to a time-of-day choice among enabled groups if omitted. days_of_week: Comma-separated day numbers (0=Sun, 1=Mon, ..., 6=Sat), or "all" for every day (default), or "weekdays", or "weekends".
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>",
"food_source_id": "<food_source_id>",
"quantity": "<quantity>",
"food_name": "<food_name>"
},
"name": "add_repeat_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | ||
| quantity | Yes | ||
| food_name | Yes | ||
| diary_group | No | ||
| days_of_week | No | all | |
| food_source_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |