create_recipe_ingredient
Add an ingredient to a recipe by providing the ingredient ID and either a unit with quantity or total grams, updating the recipe's ingredient list for nutrition labeling.
Instructions
Add an ingredient line to a recipe. POST /recipes/{id}/recipe_ingredients. Accepts ingredient_id (required) plus unit + quantity, or total_grams.
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>",
"fields": "<fields>"
},
"name": "create_recipe_ingredient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | {ingredient_id (required), unit?, quantity?, waste?, total_grams?}. unit must be one of the ingredient's available units. | |
| as_json | No | ||
| recipe_id | Yes |