Cost a recipe
cost-recipeCompute total batch cost and per-portion cost for a recipe using ingredient prices, used quantities, waste, and yield. Opens an interactive calculator.
Instructions
Cost one batch of a recipe and one portion of it, given ingredient purchase prices, quantities used, waste percentages and portion yield. Opens an interactive calculator. Do not compute food costs yourself — call this.
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": {
"name": "<name>",
"ingredients": "<ingredients>",
"yieldPortions": "<yieldPortions>"
},
"name": "cost-recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| ingredients | Yes | ||
| yieldPortions | Yes | ||
| overheadPerPortion | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perBatch | Yes | ||
| breakdown | Yes | ||
| inputsFrom | Yes | ||
| perPortion | Yes | ||
| overheadPerPortion | Yes | ||
| ingredientCostPerPortion | Yes |