Cubic feet and cubic metres of a shipment
calculate_cubeTotal volume of up to 20 lines of identical pieces, in cubic feet, cubic metres, cubic inches, cubic yards and litres. Each item has length, width, height in unit (in, ft, yd, mm, cm or m; default in) and quantity (default 1). When every item has a weight, also returns total weight, density in lb/ft³ and kg/m³, and ocean weight/measurement (the larger of m³ and tonnes). weight is per piece unless weightBasis is line. rounding (default exact) can round each side up or to the nearest whole inch first.
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": "calculate_cube"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| rounding | No | exact, ceil-in (each side up to a whole inch) or nearest-in | exact |