Skip to main content
Glama

Japan import profit: what if one number changes

what_if_import_profit
Read-only

Run calculate_import_profit several times, changing only one input (vary) to the given values or by the given percent changes, and return duty, total paid, landed cost, profit per unit, total profit, margin, verdict and break-even price for every row. Use it for "what if the yuan moves 5%?", "what if I sell at 2,480 yen?" or "how many units before it pays?". vary is one of fx, fxPay, goods, price, qty, intlShip, localShip, agentFee, brokerFee, domShip, otherCost, feePct, defectPct, returnPct, targetMargin, customRate. For fx the starting point is the official customs rate unless fx is given. Other inputs are the same as calculate_import_profit (screenLink allowed). Every row has its own openInBrowser link. 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": "what_if_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.
varyNoThe one input to vary. Other inputs stay as given.
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.
valuesNoValues to try for the varied input (up to 15). Over GET, a comma-separated list. Use either values or changePct.
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.
changePctNoPercent changes from the current value to try, e.g. [-10, -5, 5, 10]. Default [-20,-10,-5,5,10,20] when neither values nor changePct is given.
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. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value beyond that: it commits to the exact column set returned per row, notes each row carries its own openInBrowser link, and warns that results are estimates whose actual duty depends on HS classification, origin and customs value. It does not discuss row-count limits beyond the 15 cap in the schema or any rate-limit behavior.

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

Conciseness3/5

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

The opening sentence is well front-loaded with the action and the returned fields, and the example questions are efficient. However, repeating the full 16-item vary list duplicates structured data at 100% schema coverage, and the Japanese disclaimer restates the English disclaimer sentence with no added information.

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 29-parameter tool with no output schema, the description is substantial: it names the result columns, explains the one-variable-at-a-time model, notes that screenLink may substitute for itemId/goods, and flags the estimate/HS-classification caveat. The main residual gap is that the return shape is only listed by field name, with no hint about defaults or the default changePct sweep beyond the schema.

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?

With 100% schema description coverage the schema already carries the parameter burden, so the baseline applies. The description does add a genuinely useful rule — for vary=fx the starting point is the official customs rate unless fx is given — but it also re-lists all 16 enum members verbatim, which adds no meaning over the schema, and says nothing new about how values versus changePct interact.

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

Purpose5/5

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

States a specific action (re-run calculate_import_profit across a single varied input) and enumerates the returned fields (duty, total paid, landed cost, profit per unit, total profit, margin, verdict, break-even price per row). That clearly separates it from the single-run sibling calculate_import_profit and from the batch/multi-item sibling.

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?

Three concrete example questions ("what if the yuan moves 5%?", "what if I sell at 2,480 yen?", "how many units before it pays?") pin down when this sensitivity tool is the right choice, and "changing only one input ... Other inputs are the same as calculate_import_profit" tells the agent how it relates to the sibling. It stops short of an explicit "use calculate_import_profit instead when you need a single point estimate" exclusion.

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