Skip to main content
Glama

PrepSheet

Calculate GP

calculate_gp
Read-onlyIdempotent

UK 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesgp_from_price or price_from_gp.
cost_ex_vatYesCost of one item/portion, ex-VAT.
vat_rate_pctNoVAT rate. Default 20; use 0 for zero-rated items.
target_gp_pctNoTarget GP %. Required for price_from_gp.
selling_price_inc_vatNoMenu price inc VAT. Required for gp_from_price.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
gp_pctYes
verdictYes
more_infoYes
cost_ex_vatYes
gross_profitYes
vat_rate_pctYes
food_cost_pctYes
net_price_ex_vatYes
selling_price_inc_vatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources