mfp_remove_food_from_diary
Delete food entries from your MyFitnessPal diary by entry ID or fuzzy name match. Specify meal and max matches to remove unwanted logged foods.
Instructions
Remove (delete) one or more food entries from your diary.
Two modes:
1. By entry_id (precise): delete exactly the entry whose id matches -
this is the UUID `mfp_add_food_to_diary` returned when you logged it.
Use this when you already know the ID.
2. By name_contains (fuzzy): list the day's entries, find ones whose
name contains the given substring (case-insensitive), optionally
restricted to a meal, and delete up to max_matches of them.
Args:
params: RemoveFoodFromDiaryInput with one of:
- entry_id: the entry's UUID, as returned by
mfp_add_food_to_diary (NOT a food_entry_id from the diary page)
- name_contains: substring match against entry names
- meal: restrict matching to one meal
- max_matches: safety cap for fuzzy matches (default 1)
- date: date to operate on (default today)
Returns:
JSON describing each entry that was removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |