Scale a recipe and recompute its nutrition
scale_recipe_nutritionScale recipe ingredient lines by a factor or to target servings, then recompute total and per-serving nutrition with USDA FoodData Central values and FDA label rounding.
Instructions
Scales ingredient lines by a factor or from original to target servings (parses mixed numbers and fraction characters), then recomputes total and per-serving nutrition with USDA FoodData Central values and FDA label rounding for the scaled 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": {
"lines": "<lines>"
},
"name": "scale_recipe_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Ingredient lines, one per item, amount first: "2 cups all-purpose flour", "1/2 cup butter", "2 large eggs", "200 g chicken breast", "1 tsp salt". | |
| factor | No | Multiply every quantity by this, e.g. 2 or 0.5. Or give servings instead. | |
| target_servings | No | Servings you want. | |
| original_servings | No | Servings the recipe makes now. |