Parcel Fit
parcel_fitPick the smallest box an item actually fits in, allowing for padding. FREE.
Tries every rotation of the item against every box, so an item that only fits diagonally-oriented is still found. Typical input {"item_length": 10, "item_width": 6, "item_height": 4, "box_options": [[12, 9, 4], [14, 10, 6]]} returns {"fits": [{"box": [14, 10, 6], "cubic": 840.0, "slack": [2, 2, 0]}], "best": [14, 10, 6], "rejected": [...]}.
Use when choosing packaging from stock. Not for what the carrier will bill once a box is chosen — that is dim_weight. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "box_options must contain at least one [l, w, h] box"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| padding | No | Cushioning allowance added to every item side before the comparison, in the same unit. Default 1.0; use 0 for a bare fit. | |
| item_width | Yes | Item's second side, same unit. Must be greater than 0. | |
| box_options | Yes | Candidate inner box dimensions, each a list of exactly three positive numbers, e.g. [[12, 9, 4], [14, 10, 6]]. | |
| item_height | Yes | Item's third side, same unit. Must be greater than 0. | |
| item_length | Yes | Item's longest side, in inches. Must be greater than 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||