Japan import profit for several products at once
calculate_import_profit_manyRun calculate_import_profit for up to 50 products in one call (each line is its own shipment). Put shared conditions (currency, feePct, targetMargin, taxable, declarationDate...) in common; each line overrides them. Returns per-line landed cost, profit, margin, verdict, break-even price, the defaulted fields and openInBrowser, plus a summary with loss lines, and screenCsv: the same lines as a CSV that the site's 「まとめて計算(CSV)」 screen opens, so a person can check and change all lines at once (offer it as a file to save). A bad line returns its own error and does not stop the others. Estimates only. Actual duty depends on the HS classification, origin and customs value decided by Japan Customs. これは目安でございます。実際の税額は、税関が決定する品目分類・原産地・課税価格によって変わります。
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": {
"lines": "<lines>"
},
"name": "calculate_import_profit_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | One object per product: the calculate_import_profit fields (itemId, goods, qty, price, ...) plus an optional short label. | |
| common | No | Optional conditions shared by every line. Same fields as calculate_import_profit. |