calculate_margin
Calculate profit 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": {
"selling_price": "<selling_price>",
"cost": "<cost>"
},
"name": "calculate_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost price | |
| selling_price | Yes | Selling price |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| profit | Yes | ||
| selling_price | Yes | ||
| margin_percent | Yes | ||
| markup_percent | Yes |