recipe-scaler
Scale a recipe's ingredient quantities to a new serving count. Multiplies parseable amounts by target_servings / original_servings; passes 'to taste', 'pinch', and lines with no quantity through unchanged. Handles fractions, mixed numbers, decimals, and ranges. Does not convert between units — '2 cups' scales to '4 cups', not to 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": {
"original_servings": "<original_servings>",
"target_servings": "<target_servings>",
"ingredients": "<ingredients>"
},
"name": "recipe-scaler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ingredients | Yes | Ingredient list, one per line, free-form. Recognized forms include '2 cups flour', '1 1/2 tsp salt', '0.5 lb butter', '1-2 cups broth'. Lines with no parseable quantity (e.g. 'salt to taste', 'a pinch of pepper') pass through unchanged. | |
| target_servings | Yes | The serving count you want the recipe to produce. Must be > 0. Example: cooking for 6 instead of 4 → 6. | |
| original_servings | Yes | The serving count the recipe was originally written for. Must be > 0. Example: a recipe that says 'Serves 4' → 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | Yes | target_servings / original_servings. | |
| ingredients | Yes | One entry per non-empty input line, in input order. | |
| target_servings | Yes | ||
| original_servings | Yes |