api_order_profit
Calculate ecommerce, wholesale and viral-order contribution margin from selling price, cost, delivery, payment/platform fees, ads and units. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
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>",
"unit_cost": "<unit_cost>"
},
"name": "api_order_profit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | No | Number of orders, default 1 | |
| unit_cost | Yes | Goods cost per order | |
| ads_per_order | No | Ad spend attributed per order, default 0 | |
| selling_price | Yes | Selling price per fulfilled order | |
| shipping_cost | No | Shipping and packing cost per order, default 0 | |
| platform_fee_pct | No | Percentage platform/payment fee on selling price, default 0 |