omni_landed_cost_unit_margin
Calculates true per-unit landed cost from FOB, freight, tariffs, port and drayage fees, then derives gross profit per unit and gross margin percentage against your target retail price.
Instructions
Total Landed Cost & Gross Margin Calculator. Calculate true per-unit landed cost factoring in FOB factory pricing, ocean freight, customs tariffs, port fees, and drayage to establish profitable retail pricing. Discipline: ECOMMERCE. Governing mathematical model / formula: Landed Unit Cost = FOB + (Freight + Tariffs + Port + Drayage) / Total Units | Gross Margin % = [(Retail Price - Landed Cost) / Retail Price] × 100.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of landed_unit_cost (True Landed Cost Per Unit), gross_profit_per_unit (Unit Gross Profit Contribution), gross_margin_pct (Gross Profit Margin (%)), total_import_overhead (Total Freight & Duty Surcharge) using production_run_units (Production Run Volume (Units) in units), fob_unit_cost (FOB Factory Unit Cost in $), ocean_air_freight_total (Total International Freight in $), customs_duty_rate_pct (Customs Tariff / Duty Rate (%) in %), port_and_drayage_total (Port Customs Clearance & Drayage in $), target_retail_price (Target DTC Retail Price in $). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Total Landed Cost & Gross Margin Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "landed-cost-unit-margin"
category (string): "ecommerce"
name (string): "Total Landed Cost & Gross Margin Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.landed_unit_cost (True Landed Cost Per Unit): Formatted display string (e.g. '$10.35 / unit')
metrics.gross_profit_per_unit (Unit Gross Profit Contribution): Formatted display string (e.g. '$27.65 / unit')
metrics.gross_margin_pct (Gross Profit Margin (%)): Formatted display string (e.g. '72.8%')
metrics.total_import_overhead (Total Freight & Duty Surcharge): Formatted display string (e.g. '$9,237.50 Total')
execution_time_ms (number): Latency in milliseconds.
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": "omni_landed_cost_unit_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fob_unit_cost | No | FOB Factory Unit Cost ($). Free On Board factory cost per unit. Default: 8.5. Min: 0.5. Max: 1000. | |
| target_retail_price | No | Target DTC Retail Price ($). Intended consumer sales price per unit. Default: 38. Min: 1. Max: 2000. | |
| production_run_units | No | Production Run Volume (Units) (units). Total quantity manufactured in production batch. Default: 5000. Min: 100. Max: 500000. | |
| customs_duty_rate_pct | No | Customs Tariff / Duty Rate (%) (%). Harmonized Tariff Schedule (HTS) import duty rate. Default: 7.5. Min: 0. Max: 100. | |
| port_and_drayage_total | No | Port Customs Clearance & Drayage ($). Customs brokerage, terminal handling, and warehouse trucking. Default: 1850. Min: 0. Max: 50000. | |
| ocean_air_freight_total | No | Total International Freight ($). Full container load (FCL) or air freight shipping cost. Default: 4200. Min: 0. Max: 100000. |