Johto Data Carton Dimensional Billable Weight Calculator
carton_weightCalculate dimensional and billable kg from caller-supplied centimetres, actual kg, divisor and optional rounding step. No carrier price lookup. Costs $0.001 USDC per call via x402. Without payment, the call returns the x402 payment requirements; retry with an X-PAYMENT or PAYMENT-SIGNATURE header, or params._meta["x402/payment"].
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": {
"lengthCm": "<lengthCm>",
"widthCm": "<widthCm>",
"heightCm": "<heightCm>",
"actualKg": "<actualKg>",
"divisor": "<divisor>"
},
"name": "carton_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| divisor | Yes | Caller-supplied dimensional divisor in cm^3/kg, positive, max 100000 | |
| widthCm | Yes | Width in centimetres, positive, max 10000 | |
| actualKg | Yes | Actual weight in kg, positive, max 10000 | |
| heightCm | Yes | Height in centimetres, positive, max 10000 | |
| lengthCm | Yes | Length in centimetres, positive, max 10000 | |
| roundingStepKg | No | Optional positive ceiling step in kg; omitted means no carrier rounding |