mfp_add_food_to_diary
Add food to your MyFitnessPal diary for any meal and date. Provide the food ID, meal, date, and quantity to log your nutrition entry.
Instructions
Add a food item to your MyFitnessPal food diary for a specific date and meal.
This tool adds a food entry to your diary. You can search for foods using
mfp_search_food to find the food ID (mfp_id) needed for this tool.
Args:
params: AddFoodToDiaryInput containing:
- mfp_id (str): MyFitnessPal food item ID (from mfp_search_food)
- meal (str): Meal name - 'Breakfast', 'Lunch', 'Dinner', or 'Snacks' (default: 'Breakfast')
- date (str, optional): Date in YYYY-MM-DD format, defaults to today
- quantity (float): Number of servings (default: 1.0)
- unit (str, optional): Unit/serving size (e.g., '1 cup', '100g')
Returns:
str: Confirmation message with details of the added food entry
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": {
"params": "<params>"
},
"name": "mfp_add_food_to_diary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |