Margin & markup calculator
hopi_margin_calculatorWork out profit, gross margin and markup from a cost price and a selling price. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. Amounts in GBP. Source: https://hopi.co.uk/margin-calculator/
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": {
"cost": "<cost>",
"price": "<price>"
},
"name": "hopi_margin_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost price in GBP | |
| price | Yes | Selling price in GBP |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| price | No | ||
| profit | No | ||
| summary | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| marginPercent | No | ||
| markupPercent | No |