Work out the chargeable weight of a parcel
calculate_cubic_weightCarriers charge on whichever is greater, actual weight or cubic (volumetric) weight, so a light bulky parcel costs far more than its scale weight suggests. Give the dimensions and actual weight and this returns the cubic weight under each common convention and which weight you would be charged on. Use it before quoting so the weight you pass to a quote tool is the one that will actually be billed.
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": {
"length_cm": "<length_cm>",
"width_cm": "<width_cm>",
"height_cm": "<height_cm>",
"weight_kg": "<weight_kg>"
},
"name": "calculate_cubic_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_cm | Yes | Width in centimetres. | |
| height_cm | Yes | Height in centimetres. | |
| length_cm | Yes | Longest side in centimetres. | |
| weight_kg | Yes | Actual weight on the scales, in kilograms. |