Johto Data Landed Cost and Margin Calculator
landed_marginCalculate landed cost and margin from caller-supplied costs, duty/VAT/fee assumptions. Exact decimal arithmetic. No live rate lookup or legal advice. Costs $0.002 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": {
"unitCost": "<unitCost>",
"salePrice": "<salePrice>"
},
"name": "landed_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feeRate | No | Caller-supplied fraction from 0 to 1; 0.1 means 10% | |
| vatRate | No | Caller-supplied fraction from 0 to 1; 0.1 means 10% | |
| currency | No | Shared currency of every supplied amount | USD |
| dutyRate | No | Caller-supplied fraction from 0 to 1; 0.1 means 10% | |
| fixedFee | No | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| shipping | No | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| unitCost | Yes | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| insurance | No | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| otherCost | No | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| salePrice | Yes | Caller-supplied amount in the shared currency, up to 1000000, max six decimals | |
| customsValue | No | Caller-supplied amount in the shared currency, up to 1000000, max six decimals |