Scale a list of ingredients
scale_ingredientsScale recipe ingredient quantities for any number of servings. Pass a factor or servings pair to recalculate amounts, with adjustments flagged for kitchen usability.
Instructions
Put a list of ingredient lines to a different number of people. Pass 'factor', or else the pair 'from_servings' and 'to_servings'. Quantities are recomputed by this server and not by the site, and every line says under 'scaling' whether the arithmetic landed exactly, whether the figure was moved to stay usable in a kitchen, or whether the line carried nothing to multiply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| factor | No | What to multiply every quantity by. Pass this or the servings pair, never both. | |
| ingredients | Yes | The lines to scale, as a recipe writes them, such as '200g plain flour'. | |
| to_servings | No | How many people it should feed. | |
| from_servings | No | How many people the list feeds as written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| factor | Yes | What every quantity was multiplied by. | |
| source | Yes | ||
| ingredients | Yes | ||
| scaled_count | Yes | Lines whose arithmetic landed exactly. | |
| rounded_count | Yes | Lines whose figure was moved. | |
| unscaled_count | Yes | Lines that carried no quantity to multiply. |