Solve selling price, profit, margin% and markup% from cost and one known value.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
cost | number | required | Unit cost in USD |
price | number | optional | Selling price in USD (provide this OR margin_pct OR markup_pct) |
margin_pct | number | optional | Target net margin percent |
markup_pct | number | optional | Target markup percent on cost |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "margin", "arguments": {"cost": 100}}}'curl -s https://wingmanprotocol.com/tools/margin \
-H 'Content-Type: application/json' \
-d '{"cost": 100}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/margin from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).