Create Recipe
create_user_recipeCreate a recipe from product IDs and amounts, calculate per-portion nutrients, and return the recipe ID for logging consumed portions.
Instructions
Create a recipe from products and their amounts in the whole recipe. The nutrients per portion are calculated from the products. Returns the recipe ID for add_user_consumed_recipe.
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": {
"name": "<name>",
"portion_count": "<portion_count>",
"ingredients": "<ingredients>"
},
"name": "create_user_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Recipe name | |
| ingredients | Yes | Products in the whole recipe; Yazio requires at least 2 | |
| instructions | No | Preparation steps | |
| portion_count | Yes | Number of portions the recipe makes |