Pick the box that minimises billable weight
ecommerce-profitability_packaging-optimizeTry caller boxes and orientations with padding, compute dimensional and billable weight from a caller divisor, and pick the best by billable weight or box cost. Price $0.03 USDC. POST /api/v1/ecommerce-profitability/packaging-optimize. An unpaid call returns the x402 payment terms and does not run.
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>",
"boxes": "<boxes>",
"dimDivisor": "<dimDivisor>"
},
"name": "ecommerce-profitability_packaging-optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | Yes | boxes, array. Required. | |
| items | Yes | items, array. Required. | |
| objective | No | objective, string, one of billable_weight, box_cost. Required. | billable_weight |
| paddingCm | No | paddingCm, number, from 0 to 100. Required. | |
| dimDivisor | Yes | dimDivisor, number. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| best | No | best. Object. | |
| sources | No | sources. Array. | |
| rejected | No | rejected. Array. | |
| limitations | No | limitations. Array. |