update_recipe
Edit an existing Cronometer recipe by renaming it, changing ingredients or amounts, resizing its default serving, or updating notes; nutrition recalculates for logged diary entries.
Instructions
Edit a recipe you created: rename it, change its ingredients or amounts, resize its default serving, or change its notes.
Pass only what should change. A new ingredient list replaces the whole old one (use get_food_details to read the current ingredients first), and the nutrition is recalculated from it. Diary entries that already logged the recipe keep pointing at it and follow the new nutrition, as in the app. Saved meals cannot be edited with this tool.
Ingredient and serving-size edits require a weight-based recipe; serving-based recipes only support name and notes edits. If the default serving is "full recipe", set a separate default serving in Cronometer before resizing it independently of the batch.
Args: food_id: The recipe's food ID. name: New recipe name. ingredients: New list of {"food_id": int, "grams": float} objects, with an optional "measure_id", as for add_recipe. serving_grams: New weight of the default serving in grams. If omitted and the serving was the whole batch, it follows the new batch. comments: New free-text recipe notes.
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": {
"food_id": "<food_id>"
},
"name": "update_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| food_id | Yes | ||
| comments | No | ||
| ingredients | No | ||
| serving_grams | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |