Calculate GP
calculate_gpUK gross profit (GP) calculator for food and drink. mode 'gp_from_price': give cost_ex_vat and selling_price_inc_vat to get GP % and GP per sale (VAT is removed first, as UK hospitality measures it). mode 'price_from_gp': give cost_ex_vat and target_gp_pct to get the menu price needed.
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": {
"mode": "<mode>",
"cost_ex_vat": "<cost_ex_vat>"
},
"name": "calculate_gp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | gp_from_price or price_from_gp. | |
| cost_ex_vat | Yes | Cost of one item/portion, ex-VAT. | |
| vat_rate_pct | No | VAT rate. Default 20; use 0 for zero-rated items. | |
| target_gp_pct | No | Target GP %. Required for price_from_gp. | |
| selling_price_inc_vat | No | Menu price inc VAT. Required for gp_from_price. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| gp_pct | Yes | ||
| verdict | Yes | ||
| more_info | Yes | ||
| cost_ex_vat | Yes | ||
| gross_profit | Yes | ||
| vat_rate_pct | Yes | ||
| food_cost_pct | Yes | ||
| net_price_ex_vat | Yes | ||
| selling_price_inc_vat | Yes |