Add Fitatu Meal Items
add_meal_itemsAdd products, recipes, or custom fallback items to a Fitatu meal for a specific date and meal key, validating each item before confirming it in the meal plan.
Instructions
Validates, submits, and confirms products, recipes, or fallback one-off custom items in a Fitatu meal. Prefer a catalog product or recipe: search with search_food or search_recipes first, then provide productId and measureId for a product or raw recipeId and measureId for a recipe. Custom items are not preferred; use name and nutrition values only when no suitable catalog match exists. The id field selects the variant. Deleted recipes and mismatched measures are rejected before synchronization. Returns { status: 'confirmed', date, mealKey, addedItems: [{ inputIndex, itemId }] }; each itemId is persisted and ready for later meal-item mutations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Target day in YYYY-MM-DD format where the meal items should be added. | |
| items | Yes | One or more strict variants. Prefer {productId, measureId, ...} or {recipeId, measureId, ...} selected through search_food or search_recipes. The {name, energyKcal, ...} custom variant is a fallback only when no suitable product or recipe exists. | |
| mealKey | Yes | Fitatu meal key to add items into. Use mealKey values returned by get_day_plan_items. Typical keys are breakfast, second_breakfast, lunch, snack, supper, but accounts with renamed or additional meals may use other keys such as dinner. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day where the new meal items were confirmed. | |
| status | Yes | The requested mutation was observed in the persisted Fitatu day plan. | |
| mealKey | Yes | Meal containing the confirmed new items. | |
| addedItems | Yes | Confirmed new items in input order. |