Margin & Markup
margin-markupConvert between margin and markup. Supply any one of cost/price plus one of marginPct/markupPct (or both cost and price); returns cost, price, profit, marginPct, and markupPct.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "margin-markup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Unit cost. | |
| price | No | Selling price. | |
| marginPct | No | Profit as a percent of price. | |
| markupPct | No | Profit as a percent of cost. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Cost. | |
| price | No | Price. | |
| profit | No | Profit. | |
| marginPct | No | Margin, percent. | |
| markupPct | No | Markup, percent. |