Dim Weight
dim_weightWork out whether a parcel bills on its size or its weight. FREE.
Carriers charge the greater of actual weight and dimensional weight, so a light bulky box costs more than the scale suggests. Typical input {"length": 18, "width": 12, "height": 10, "actual_weight": 6} returns {"cubic": 2160.0, "dim_weight": 15.54, "actual_weight": 6.0, "billable_weight": 15.54, "billed_on": "dimensional", "overage": 9.54, "divisor_used": 139.0, "note": "..."}.
Use when deciding whether a smaller box is worth the packing effort, or why an invoice exceeded the scale weight. Not for choosing a box from a list of candidates: that is parcel_fit. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "custom_divisor must be greater than 0 when divisor is 'custom'"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
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": "<length>",
"width": "<width>",
"height": "<height>",
"actual_weight": "<actual_weight>"
},
"name": "dim_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Second side, same unit as length. Must be greater than 0. | |
| height | Yes | Third side, same unit as length. Must be greater than 0. | |
| length | Yes | Longest side of the packed parcel, in inches (or centimetres when using a metric divisor). Must be greater than 0. | |
| divisor | No | Which published divisor to apply. "ups_daily" is 139 and "ups_retail" is 166 cubic inches per pound, as UPS states them; "usps" is 166; the metric options are cubic centimetres per kilogram. Use "custom" to supply a contracted divisor. | ups_daily |
| actual_weight | Yes | Scale weight in pounds (or kilograms with a metric divisor). Must be greater than 0. | |
| custom_divisor | No | Your contracted divisor, used only when divisor is "custom". Must be greater than 0 in that case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||