Compare Freight Modes
compare_modesTHE ONE CALL for "what's the cheapest/best way to ship this?". Prices ALL FOUR freight modes (LTL / full truckload / cargo van / 26' box truck) in ONE keyless call to Warp's all-modes engine and returns a decision-complete recommendation: the winning mode, its rate, transit, a bookable quote_id, the trade-off math against the runner-up, and every mode that couldn't price (with the reason). Prefer this over calling the individual quote tools and comparing them yourself — one round trip, and modes Warp can't serve are returned as explicitly unavailable WITH the reason rather than being dropped, so there is never a silently shortened list to guess from. Dims are optional (a standard 48x40x48 pallet is assumed). Set benchmark_market:true to also rank Warp's rate against the live 30+ carrier market for the lane (adds ~15-25s) — that makes the answer decision-complete: the right mode AND whether the price is actually good. Quote-only: it never books. To book, pass the recommended quote_id to book after the user confirms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hazmat | No | Hazardous materials flag | |
| pallets | Yes | Number of pallets (1-26) | |
| priority | No | What to optimize the recommendation for. Defaults to 'cheapest'. | |
| width_in | No | Pallet width in inches (defaults to 40) | |
| commodity | No | Commodity description | |
| height_in | No | Pallet height in inches (defaults to 48) | |
| length_in | No | Pallet length in inches (defaults to 48) | |
| stackable | No | Whether pallets are stackable | |
| origin_zip | Yes | 5-digit US ZIP code | |
| pickup_date | Yes | Pickup date YYYY-MM-DD | |
| freight_class | No | Freight class (optional, FAK rates used if omitted) | |
| destination_zip | Yes | 5-digit US ZIP code | |
| pickup_services | No | Pickup accessorials: pickup-appointment, liftgate-pickup, residential-pickup, limited-access-pickup, inside-pickup, driver-assist-pickup | |
| benchmark_market | No | Also benchmark Warp's rate against the live 30+ carrier LTL market for this lane. Makes the answer decision-complete (is this rate actually good?) but costs ~15-25s — the mode comparison alone returns in ~1-2s. Defaults to false. | |
| delivery_services | No | Delivery accessorials: delivery-appointment, liftgate-delivery, residential-delivery, limited-access-delivery, inside-delivery, driver-assist-delivery | |
| weight_lbs_per_pallet | Yes | Weight per pallet in lbs |