Margin calculator
margin_calculatorProfit, margin (share of price) and markup (share of cost) from cost and selling price. Runs on smart-tools.xyz.
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": "margin_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost price | |
| price | Yes | Selling price | |
| locale | No | Language for the source_url link (default en) |