dishmath
v0.1.0Local restaurant math: food cost, menu price with VAT, recipe scaling and the EU allergen matrix.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
food_cost_calculator
Cost of a dish from its ingredients, the price that hits your target food cost %, and your actual food cost % at the current price.
| Parameter | Type | Description |
|---|---|---|
ingredients * | array | The ingredients for this call. |
currency | string | Currency code, e.g. USD. |
current_price | number | Current price value. |
target_food_cost_percent | number | The target food cost percent for this call. |
recipe_scaler
Scale a recipe from N to M portions. Returns every scaled quantity, plus batch cost and cost per portion when unit costs are given.
| Parameter | Type | Description |
|---|---|---|
ingredients * | array | The ingredients for this call. |
original_portions * | number | Original number of portions. |
target_portions * | number | Target number of portions. |
currency | string | Currency code, e.g. USD. |
allergen_matrix
The dish × allergen table required in the EU (Reg. 1169/2011, Annex II), with the dishes to avoid for each allergen. Accepts English, Italian or common names.
| Parameter | Type | Description |
|---|---|---|
dishes * | array | Dishes payload. |