calculate_landed_cost_and_margin
Calculate full import landed cost and DTC gross margin comparing Ocean, Air, and Express freight side by side using ForthSource's port-specific shipping calculator, customs duties, 3PL fulfillment & packaging, payment fees, break-even pricing, and 30/70 first-PO cash requirements.
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": {
"unit_cost_usd": "<unit_cost_usd>",
"quantity": "<quantity>",
"unit_weight_kg": "<unit_weight_kg>"
},
"name": "calculate_landed_cost_and_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | Order quantity in units. | |
| destination | No | Destination city and country (e.g. 'Amsterdam, NL', 'Los Angeles, US', 'London, GB'). | Los Angeles, US |
| origin_city | No | Origin city/port (e.g. 'Shenzhen', 'Shanghai', 'Guangzhou', 'Ningbo', 'Qingdao'). | Shenzhen |
| product_query | No | Optional product keyword to infer default category duty rate. | |
| unit_cost_usd | Yes | Ex-works / FOB factory unit cost in USD. | |
| unit_weight_kg | Yes | Weight per unit in kilograms (including retail packaging). | |
| retail_price_usd | No | Optional target DTC retail price in USD for margin calculation. | |
| duty_rate_percent | No | Optional customs duty rate % (defaults by product category or 6.0%). | |
| payment_fee_percent | No | Payment processing fee % on retail price (default 2.9%). | |
| fulfillment_cost_per_order_usd | No | Optional destination 3PL pick/pack + domestic parcel cost per order (default $5.50). |