Skip to main content
Glama

Japan import landed cost and profit

calculate_import_profit
Read-only

Calculate Japanese customs duty (simplified or general rate, small-value exemption, per-pair duty for leather shoes), import consumption tax (7.8% national + 2.2% local, with the official rounding), landed cost per unit, profit, margin, break-even price and the maximum purchase price for a target margin, for goods imported into Japan from any country. Uses the official Japan Customs weekly exchange rate. Every result includes inputsUsed (all values used, with defaulted listing the ones you did not pass and this tool filled in) and openInBrowser: a link that opens the same numbers in the calculator screen (Japanese), so a person can check and change any condition. Show that link to the user. If the user sends back a link from the screen (its 「AIに渡す」 button), pass it as screenLink: its numbers become the inputs and fields you pass win. Invalid input returns code and problems (every bad field at once) and, for an unknown itemId, suggestions. Estimates only. Actual duty depends on the HS classification, origin and customs value decided by Japan Customs. これは目安でございます。実際の税額は、税関が決定する品目分類・原産地・課税価格によって変わります。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_import_profit"
  }
}

Input Schema

NameRequiredDescriptionDefault
fxNoOptional yen per 1 unit of currency used for customs value. Overrides the official rate.
qtyNoNumber of units (pairs for shoes). Default 1.
fxPayNoOptional yen per 1 unit you actually paid (card / agent rate). Used for the cost only; defaults to fx.
goodsNoTotal product price for the whole shipment, in `currency`.
priceNoSelling price per unit in Japan, yen, tax included.
feePctNoMarketplace fee percent of the tax-included price (Mercari 10, BASE standard 6.6, Amazon.co.jp most categories about 16.9 incl. tax on the fee).
itemIdNoItem id from list_items, e.g. "knit_tops", "leather_shoes", "textile_bag", "electronics". Use "other" with customRate for anything else.
domShipNoDomestic shipping per unit, yen.
taxableNoSeller is a consumption-tax registered business under standard taxation with full input-tax credit: import consumption tax is deducted from cost and sales are ex-tax. Default false.
agentFeeNoBuying agent / inspection fees in yen (cost only, not customs value).
currencyNoISO code of the product price (USD, CNY, EUR, KRW, ...). Default JPY. The official Japan Customs weekly rate is used unless fx is given.
feeFixedNoOptional fixed fee per order in yen, tax included (BASE standard 40). Default 0.
intlShipNoInternational shipping in yen (included in customs value).
personalNoPersonal-use import: customs value is 60% of the retail price. Default false (business import).
rateModeNo"auto" uses the simplified rate when allowed (customs value <= 200,000 yen); "general" forces the general rate.
saleDateNoPlanned sale date in Japan (YYYY-MM-DD). Food only: the sales consumption tax uses the rate on this date (8%, or 1% from 2027-04-01 to 2029-03-31). Defaults to declarationDate.
brokerFeeNoCustoms broker / courier advance fees in yen.
defectPctNoPercent of purchased units found defective on arrival and not sellable (0-99). Defective units are assumed discarded with no refund from the supplier, so sellable units carry the whole landed cost; totalProfitYen counts sellable units only. sales.breakEvenDefectPercent tells how high this can go before the unit profit turns negative. Default 0.
insuranceNoInsurance in yen (included in customs value).
localShipNoShipping inside the origin country, in `currency` (included in customs value).
otherCostNoOther cost per unit, yen.
returnPctNoPercent of sold units refunded for returns or defects and not resellable (0-99). Return postage is assumed equal to domShip and the marketplace fee is assumed refunded. Default 0.
customRateNoOptional general duty rate in percent, overriding the dictionary.
screenLinkNoOptional link copied from the calculator screen (its 「AIに渡す」 button, or any openInBrowser link). Its numbers become the inputs; fields you pass directly win. Then itemId and goods are not needed.
targetMarginNoTarget profit margin percent. Default 20.
declarationDateNoPlanned import declaration date (YYYY-MM-DD, Japan time). Picks the official customs rate of that week (Sunday to Saturday). Default today.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / screenLink
      Added value: +{
      +  "description": "Optional link copied from the calculator screen (its 「AIに渡す」 button, or any openInBrowser link). Its numbers become the inputs; fields you pass directly win. Then itemId and goods are not needed.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "itemId",
      -  "goods"
      -]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the read-only annotations, it discloses the official weekly exchange-rate source, reporting of defaulted values through inputsUsed, the Japanese browser handoff, input precedence, aggregated validation errors, and suggestions for unknown itemId values. It also clearly states that results are estimates and that actual duty depends on Japan Customs decisions, all consistently with the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with purpose and then proceeds logically through data source, outputs, interactive workflow, errors, and limitations. It is dense, and the Japanese disclaimer repeats the preceding English caveat, preventing a top conciseness score despite most content being useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 26-parameter calculator without an output schema, it covers an unusually broad range of invocation and result behavior, including default reporting, browser verification, error shapes, and legal limitations. Explicit minimum inputs for an ordinary calculation and guidance for choosing among the calculation siblings would make it more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 26 parameters thoroughly. The description reinforces rate modes, target-margin calculations, and screenLink precedence, but these largely repeat schema information; most of its additional value concerns outputs and domain behavior rather than parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource, enumerating Japanese customs duty, import consumption tax, landed cost, profit, margin, break-even price, and maximum purchase price for imports into Japan. It clearly establishes the domain, but does not explicitly distinguish this tool from calculate_import_profit_many or what_if_import_profit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a concrete usage context and a detailed browser round-trip workflow: show openInBrowser to the user, accept a returned screenLink, and give explicitly passed fields precedence. The estimate-only caveat also limits appropriate reliance, but there is no explicit when-not guidance or routing to batch, what-if, or other sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources