optimize_cartons
Minimize fixed all-in carton costs for 1–500 identical units from one origin. Supply 1–16 pre-approved carton types, available counts, timing and baseline counts. Requires confirmed physical fit and additive per-carton rates. Excludes mixed items, multi-origin shipments, dimensional fit testing and shipment-level discounts. Use before buying shipping labels, after rating the shipment and confirming the delivery deadline. Skip this check when the plan is committed or your shipping system already optimized the same stock, costs and deadline. Price USD 0.00 per call. No authentication. Planning only. Expected sample result: https://dispatch-preflight.yhu9625.chatgpt.site/v1/example/pack/result
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": {
"asOf": "<asOf>",
"deadline": "<deadline>",
"currency": "<currency>",
"sameServiceRequirementsConfirmed": "<sameServiceRequirementsConfirmed>",
"allInCostsConfirmed": "<allInCostsConfirmed>",
"quantity": "<quantity>",
"cartonFitConfirmed": "<cartonFitConfirmed>",
"baselineCounts": "<baselineCounts>",
"cartonTypes": "<cartonTypes>"
},
"name": "optimize_cartons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ||
| currency | Yes | ||
| deadline | Yes | ||
| quantity | Yes | ||
| cartonTypes | Yes | ||
| baselineCounts | Yes | ||
| cartonFitConfirmed | Yes | ||
| allInCostsConfirmed | Yes | ||
| sameServiceRequirementsConfirmed | Yes |