ship_dimweight
What a parcel is actually BILLED, step by step: dimensions -> ceil each BEFORE volume -> volume ÷ divisor -> max(actual, dimensional) -> ceil to the weight palier -> cap. Two published calculators disagree on the SAME inches (20x20x12: rollo 35 lb, amzprep 34.5 — the exact value is 4800/139 = 34.5323741007, one of them skipped the final ceil). Carrier tables are ARGUMENTS, never embedded — they rot (USPS moved 166 -> 139 ON 2026-07-12); divisor carries its own unit (in3_lb|cm3_kg), which kills the published mm-into-139 trap (x16.4). USPS-style gates: >1 cubic foot, 70 lb cap, as named steps. All Fractions exact; free.
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": {
"dims": "<dims>",
"actual_weight": "<actual_weight>",
"rules": "<rules>"
},
"name": "ship_dimweight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dims | Yes | ||
| as_of | No | YYYY-MM-DD date the carrier table was read | |
| rules | Yes | ||
| actual_weight | Yes |