door_to_door
Calculates total door-to-door cost and transit time for import moves, including inland drayage, chassis fees, and gate congestion, with rail-vs-truck optimization for interior destinations.
Instructions
Get the TRUE DOOR-TO-DOOR cost and time of an import move, not the port-to-port figure importers usually quote. The ocean tools price PORT-TO-PORT; this layers the INLAND legs at BOTH ends onto the all-in ocean move: origin drayage (the short truck move factory/CY → load port), destination drayage (discharge port → DC), the US CHASSIS rental (a separate daily charge + a chassis-split fee that exists in the US but is bundled elsewhere), terminal GATE-congestion fees and turn-time days, and — when the cargo's real destination is INLAND — the interior haul with a RAIL-vs-TRUCK decision (US IPI intermodal to Chicago/Dallas/Memphis; the Rotterdam/Antwerp barge-rail hinterland to Duisburg/Basel/Milan), choosing the cheaper mode by distance (deadline-aware). Inland routinely adds 15-40% over the port-to-port cost and several days — both of which this returns folded into a door-to-door total and a door p50/p90 transit. Every inland figure is a modeled market-typical band (regla 7), not a trucker quote. PREMIUM: x402 (USDC on Base) or a prepaid key. Same UN/LOCODE port normalization as get_spot_rate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin_port | Yes | Origin (load) port — city, UN/LOCODE, or 'City, Country'. | |
| dest_port | Yes | Destination (discharge) port — city, UN/LOCODE, or 'City, Country'. | |
| container_type | No | Container size '20ft'/'40ft'/'40HC'. Optional; defaults to '40ft'. | |
| ship_date | No | Intended ship date (ISO). Drives ocean seasonality & transit. Optional; defaults to today. | |
| band | No | Inland cost band: 'low', 'typical' (default) or 'high'. | |
| inland_destination | No | Optional inland point the cargo really goes to (e.g. 'Chicago', 'Dallas', 'Duisburg', 'Milan', 'Basel') → adds the interior rail-vs-truck haul from the discharge port. | |
| interior_mode | No | Force the interior haul mode: 'rail' or 'truck'. Optional; default = cheaper of the two (deadline-aware). | |
| urgent | No | Hard deadline → biases the interior haul to truck for door-speed. Optional. |