An experiment in shopping arithmetic
Cheaper per item.
But cheaper for your basket?
A ten-pack can have the lower unit price while two six-packs cost less for the quantity you need. Compare whole-pack combinations here.
Free calculation · No account · No purchase or order placement
What do you need?
For agents: the same call, as JSON
The request below follows your inputs. Send it to the fixed free endpoint with Content-Type: application/json. No key, wallet or payment is needed. A rejection never triggers a paid call.
POST https://agent-utilities.agent-utilities.workers.dev/v1/preview/commerce.pack-plan
{
"currency": "USD", "minorUnitDigits": 2, "requiredUnits": 12,
"offers": [
{"id": "A", "unitsPerPack": 6, "price": "7.99", "maxPacks": 10},
{"id": "B", "unitsPerPack": 10, "price": "11.99", "maxPacks": 10}
]
}
View the computed JSON response
No request sent yet.
The API accepts up to three offers, 1000 required units, 1000 units per pack, 50 packs per offer and 4096 JSON bytes. The free trial is repeatable. Full hosted plans are also free during validation, within their published input and shared capacity limits. No funding is needed. Use the full tool.
Machine-readable schemas and limits · MCP setup · Python example