plan_load
Compute a 3D load plan for cargo into a container or truck: containers used, utilization (volume & payload %), centre of gravity, crush-protection violations, and a securing checklist (round cargo that rolls, soft cargo that slumps). Cargo type drives realism — drums/pipes hex-nest, big bags/sacks load on top and are never crushed. Omit equipmentCode to auto right-size to the cheapest container that fits. A real API key runs the production PackingSolver optimizer; the public demo key uses the offline preview packer.
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": {
"items": "<items>"
},
"name": "plan_load"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vgm | No | SOLAS Verified Gross Mass declaration (else a tare+cargo estimate is reported) | |
| mode | No | Transport mode — scopes auto right-size to usable equipment (sea→containers, road→trucks, air→ULDs). Ignored when equipmentCode is given. | sea |
| items | Yes | Cargo lines to load | |
| topUp | No | Also return `topUp`: for each cargo line, how many MORE units still fit in the same containers with every unit placed and the load still ready (e.g. "+6 of SKU A, fill 82%"), plus `topUpCombos`: up to 3 mixes of two lines that fit together (e.g. "+4 of A and +2 of B"). Takes longer, since it re-plans the load per line. | |
| freight | No | Freight cost per unit: split the ocean freight for this load (rate per container x containers used) across the cargo lines, per line and per unit, so it can go into product cost. Uses the indicative market rate for the lane (20GP/40GP/40HC, real API key) or your ratePerContainer. Indicative, not a quote. No rate = freight.available false with a reason. | |
| massLimits | No | Australian mass tier (default general). hml = HVNL Higher Mass Limits for AU (tri-axle 22.5 t, 6-axle combination 45.5 t; needs an HML route, road-friendly suspension and mass accreditation) or the NT road-friendly-suspension limits for AU-NT. Ignored elsewhere. | |
| jurisdiction | No | Road jurisdiction for the axle / gross-weight compliance check (default EU). Set CN for China GB 1589 drayage limits, AU for Australian HVNL general mass limits (NSW, Vic, Qld, SA, Tas, ACT), AU-WA for Western Australia, AU-NT for the Northern Territory. Australian jurisdictions also secure to the HVNL Sch 7 loading performance standards. | |
| vesselMotion | No | IMO CSS Annex 13 vessel motion + stowage position. When set, the sea leg uses the position-dependent DYNAMIC acceleration field (a container on deck forward sees a far harsher case than one low amidships) instead of the flat sea-area coefficient. | |
| equipmentCode | No | Equipment code, e.g. 40HC (see list_equipment). Omit to auto right-size. | |
| sequenceStops | No | Delivery-stop sequencing: with ≥2 distinct deliveryStop values, zone the load nose→doors in reverse delivery order. | |
| vehicleTareKg | No | Your road vehicle tare in kg (container: prime mover + chassis/skeletal; truck: the truck). Replaces the nominal tare in the gross check (AU default 14,100 kg, elsewhere 11,600 kg for a container combination). For a truck it also sets the load the vehicle itself puts on each axle group in axleLoadsKg, split like the nominal tare. | |
| complyingSteerAxle | No | AU only: the prime mover is an HVNL complying steer axle vehicle (6.5 t steer, 44 t combination). Default false. | |
| extremeAxleSpacingMm | No | AU, AU-WA, AU-NT only: your vehicle extreme axle spacing in mm (steer axle centre to last axle centre) for the axle-spacing mass limit (HVNL Sch 1 s 5 Table 2, WA r 165, NT r 13). Default for a container: nominal prime mover + 40 ft tri-axle skeletal, 13,805 mm. Truck profiles have no steer position: without it only the spacing between their axle groups is checked. Result: compliance.axle.spacing; an over-limit span is an AXLE_SPACING blocker. |