ContainerMath CBM

v1.2.2
com.containermath/cbm Checked 6 hours ago Published 5 days ago

Cargo load plans, CBM, pallets per container or trailer, and container dimensions.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calculate_cbm Calculate CBM & Container Fit

Calculate total shipment volume (CBM / cubic metres and CFT / cubic feet), total weight, and how that cargo fits into standard shipping containers (20ft Standard, 40ft Standard, 40ft High Cube). Use this whenever someone asks how much space a shipment takes, how many cubic metres or CBM their boxes / pallets / cartons add up to, whether cargo will fit in a container, what container size they need, or how full a container will be. Accepts a list of items with length, width, height, weight and quantity in metric (cm, kg) or imperial (in, lb) units; returns total CBM, CFT, total weight, and per-c…

ParameterTypeDescription
items *arrayThe cargo line items to total up.
unitSystemstringUnits for the item dimensions and weight. 'metric' = centimetres and kilograms; 'imperial' = inches and pounds.

plan_cargo_load Plan a Cargo Load

Plan how one cargo size loads into a shipping container, truck trailer or rail wagon. Use this when someone asks how many of their boxes, cartons, crates or pallets (of a given size, and optionally weight) fit in a 20ft, 40ft, 40ft High Cube, 45ft, 53ft dry van, curtainsider or other vehicle, how many containers or trucks a quantity needs, or whether weight or space limits the load. Returns units per floor layer (mixed orientations), layers by interior height, units per load, whether space or payload binds, loads needed, utilisation, and a link to the same plan drawn on the web. One size per c…

ParameterTypeDescription
height *numberHeight of one unit. For a pallet, the loaded height including the deck.
length *numberLength of one unit (carton, crate or loaded pallet).
vessel *stringThe container, truck trailer or rail wagon to load. Accepts a slug ("40ft-high-cube-container") or a plain name ("40HC", "20ft", "53ft dry van", "curtainsider"). Air ULDs are not supported. Call get_c…
width *numberWidth of one unit.
keepUprightboolean"This side up": false lets the unit lie on a side if that fits more.
quantityintegerHow many units ship.
stackablebooleanWhether units may be stacked on top of each other.
unitSystemstringUnits for the dimensions and weight. 'metric' = centimetres and kilograms; 'imperial' = inches and pounds.
weightnumberGross weight of one unit. Optional; without it the payload is not checked.

how_many_pallets_fit How Many Pallets Fit

How many pallets fit in a given shipping container, truck trailer, rail wagon or air ULD. Use this whenever someone asks how many pallets (Euro 1200x800, standard 1200x1000, or US GMA 48x40) fit in a 20ft, 40ft, 40ft High Cube, 45ft, 53ft trailer or any other vessel. Returns the best single-layer floor count with pallets turned to their best orientation — a solved pallet-loading result, not length divided by length, so a 20ft holds 11 Euro pallets and a 40ft holds 25 — plus the double-stacked count with the load height that allows it, and how many the payload allows, which is what decides…

ParameterTypeDescription
vessel *stringThe container, trailer, rail wagon or air ULD to load. Accepts a slug ("40ft-high-cube-container") or a plain name ("40HC", "40' high cube", "53ft trailer"). Call get_container_dimensions with no argu…
grossWeightKgPerPalletnumberGross weight of one LOADED pallet, kg. Only affects the payload-limited count, which is what decides whether weight or floor space binds first.
palletTypestringWhich pallet: 'euro' (1200x800mm), 'standard' (1200x1000mm), 'gma' (US 48x40in), or 'all' for every size.

get_container_dimensions Container & Vehicle Dimensions

Interior dimensions, volume, floor area and maximum payload for 47 shipping containers, truck trailers, rail wagons and air ULDs. Use this when someone asks for the internal or interior dimensions, cubic capacity, floor area, payload or weight limit of a container or trailer — 20ft, 40ft, 40ft High Cube, 45ft, reefer, open top, flat rack, 53ft dry van, curtainsider, boxcar, LD-3, PMC and more. Called with no arguments (optionally filtered by mode) it lists the whole catalog with the slug for each vessel.

ParameterTypeDescription
modestringWhen listing, restrict to one transport mode. Ignored when `vessel` is given.
vesselstringThe vessel to look up, as a slug ("20ft-container") or plain name ("20 foot container", "40HC"). Omit to list the catalog instead.