Markup Margin
markup_marginPrice, margin and markup in exact cents. Analyze a cost and a price (margin is profit / price, markup is profit / cost). Or set a price from a cost and a margin percent (price = cost / (1 − margin)), or from a markup percent (price = cost × (1 + markup)). Or walk a list of successive discounts off a price, rounding each step half away from zero to the cent. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/markup-margin
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": "markup_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| mode | No | analyze | |
| price | No | ||
| discounts | No | Successive percent-off discounts, e.g. 20,10 | |
| marginPct | No | ||
| markupPct | No |