Profit per sale
calculate_profit_per_saleWorks out an online store's profit on one sale from price, unit cost, shipping, fees and ad spend: profit, margin, the most an ad can cost a sale, and break-even return on ad spend. Arithmetic on the numbers given, in any currency.
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": {
"price": "<price>",
"unitCost": "<unitCost>"
},
"name": "calculate_profit_per_sale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | What the shopper pays for one unit. | |
| adCost | No | What the store spends on ads to win one sale. 0 for none. | |
| feePct | No | Payment and marketplace fees as a percentage of the price, e.g. 2.9. | |
| shipping | No | What sending one order to the shopper costs the store. 0 if the shopper pays it. | |
| unitCost | Yes | What one unit costs the store, delivered to it. |