Add Recipe Portion
add_user_consumed_recipeLog recipe portions to a Yazio diary using recipe ID, date, meal, and portion count so consumed recipe items are tracked as recipe_portions.
Instructions
Log portions of a recipe to the diary. Shows up in get_user_consumed_items as recipe_portions. Use get_recipe for the nutrients per portion.
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": {
"recipe_id": "<recipe_id>",
"date": "<date>",
"daytime": "<daytime>",
"portion_count": "<portion_count>"
},
"name": "add_user_consumed_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date and time when the food was consumed in "YYYY-MM-DD HH:mm:ss" format (e.g., "2025-12-18 12:30:00"), or date only in YYYY-MM-DD format | |
| daytime | Yes | Type of meal (breakfast, lunch, dinner, snack) | |
| recipe_id | Yes | Recipe ID from get_user_recipes, or recipe_id of an earlier recipe portion in get_user_consumed_items | |
| portion_count | Yes | Number of portions eaten, e.g. 1 or 0.5 |