mfp_update_food_entry
Update an existing MyFitnessPal diary entry by changing its meal, quantity, serving size, or date using the entry ID from a diary lookup. Get confirmation if the entry ID changes after editing.
Instructions
Update an existing MyFitnessPal diary entry.
Supports changing the meal, quantity, serving size, and date for an entry
previously returned by mfp_get_diary (use response_format='json' to get the
entry_id). MyFitnessPal can rewrite an entry during edit and return a
replacement row, so the response includes current_entry_id and
entry_id_changed to keep callers tracking the right diary row.
Args: params: UpdateFoodEntryInput containing: - entry_id (str): Diary entry ID from mfp_get_diary JSON output - date (str, optional): Date in YYYY-MM-DD format, defaults to today - meal (str, optional): New meal name - quantity (float, optional): New number of servings - unit (str, optional): New serving-size label - weight_id (str, optional): Raw MFP serving-size option ID
Returns: str: Confirmation with the current entry id and whether it changed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |