Calculate a profit margin
calculate_profit_marginCalculate the profit margin and markup from a cost and a selling price, or the selling price needed for a target margin.
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>"
},
"name": "calculate_profit_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost of the item or job | |
| price | No | Selling price | |
| targetMarginPercent | No | Margin wanted, as a percentage of price |