How It Works & Live Probe Telemetry
Powered by exact decimal.Decimal accounting in 0.1 ms, this calculator combines cogs + freight_and_duty into landed_cost, adds fulfillment_pick_pack, computes payment_fee (selling_price * payment_fee_pct + payment_fixed_fee), models expected_return_drag from return_rate_pct and return_processing_cost, and outputs net_profit, net_margin_pct, and break_even_roas. On a $79.00 order ($18.50 COGS, $4.20 freight, $5.50 pick/pack, 6% returns), landed_cost equals $22.70 and payment_fee equals $2.59.
Verified Endpoint & Billing Contract
| MCP Tool Name | ecommerce_landed_margin_calculator |
|---|---|
| Subdomain & Mode | pricing_fx · deterministic |
| REST Endpoint | POST https://devour-com.fastmesh.dev/v1/organs/ecommerce_landed_margin_calculator/invoke |
| MCP Endpoint | POST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp) |
| Verified Probe Latency | 0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z) |
| Archive Cache TTL | 30 days (2592000s) cross-tenant verified-hit cache |
| Empty / Error Rule | Charge $0.00 when selling_price <= 0 or percentage rates fall outside 0..100. |
| Plans & Privacy | Starter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale |
Production Use Cases
| Scenario | Trigger Input | Deterministic Output Value |
|---|---|---|
| Paid Ad Break-Even ROAS Audit | Know exact break-even ROAS before scaling Meta or Google Ads | Factors return drag and gateway fees into unit profitability |
| New Supplier Freight Comparison | Compare air vs ocean landed_cost impact on net_margin_pct | Quantifies exact dollar impact per unit sold |
| SKU Portfolio Pruning | Identify SKUs with high return_rate_pct eroding net profit | Surfaces hidden margin losers across hundreds of catalog items |
MCP JSON-RPC 2.0 & REST Invocation Examples
Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ecommerce_landed_margin_calculator",
"arguments": {
"selling_price": "79.00",
"cogs": "18.50",
"freight_and_duty": "4.20",
"fulfillment_pick_pack": "5.50",
"payment_fee_pct": "2.9",
"payment_fixed_fee": "0.30",
"return_rate_pct": "6.0",
"return_processing_cost": "8.00"
}
}
}
Or invoke directly via REST (POST /v1/organs/ecommerce_landed_margin_calculator/invoke):
curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/ecommerce_landed_margin_calculator/invoke \
-H 'Content-Type: application/json' \
-d '{"input": {"selling_price": "79.00", "cogs": "18.50", "freight_and_duty": "4.20", "fulfillment_pick_pack": "5.50", "payment_fee_pct": "2.9", "payment_fixed_fee": "0.30", "return_rate_pct": "6.0", "return_processing_cost": "8.00"}}'
Verified structured JSON response:
{
"ok": true,
"landed_cost": "22.70",
"payment_fee": "2.59",
"expected_return_drag": "0.48",
"net_profit": "47.73",
"net_margin_pct": "60.42",
"break_even_roas": "1.66",
"billable_usd": "0.005"
}
Strict Input Schema
{
"type": "object",
"properties": {
"selling_price": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$"
},
"cogs": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$"
},
"freight_and_duty": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "0"
},
"fulfillment_pick_pack": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "0"
},
"payment_fee_pct": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "2.9"
},
"payment_fixed_fee": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "0.30"
},
"return_rate_pct": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "0"
},
"return_processing_cost": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"default": "0"
}
},
"required": [
"selling_price",
"cogs"
],
"additionalProperties": false
}
Frequently Asked Questions
How is expected_return_drag calculated?
It models the expected per-order cost of returns using (return_rate_pct / 100) applied to lost margin and return_processing_cost.
Are percentage inputs bounded?
Yes; selling_price <= 0 or rates outside 0..100 fail validation at $0.00.