Skip to main content
Glama

calculate kr import duty

calculate_kr_import_duty
Read-onlyIdempotent

South Korea import duty and VAT: customs value = (price + freight + insurance) × customs FX rate (관세법 제30조), duty = value × rate, VAT = (value + duty) × 10%. Compares the general rate with an FTA preferential rate (only with proof of origin, FTA관세특례법 제8조) and checks the personal direct-purchase exemption (goods price ≤ USD 150, USD 200 from the US). Rates come from the user (HS code lookup at the customs law portal); no tariff classification. Excludes individual consumption/liquor taxes.

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": {
      "price": "<price>",
      "fx": "<fx>",
      "baseRate": "<baseRate>"
    },
    "name": "calculate_kr_import_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
fxYesCustoms FX rate, KRW per USD
priceYesGoods price in USD
fromUSNoShipped from the United States
freightNoFreight in USD
ftaRateNoFTA preferential rate as a fraction (omit or equal to baseRate if none)
baseRateYesGeneral/WTO duty rate as a fraction, e.g. 0.13
personalNoPersonal-use direct purchase
hasOriginNoHas a certificate/proof of origin
insuranceNoInsurance in USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower; the description still adds real value by spelling out the statutory formulas, the legal bases (관세법 제30조, FTA관세특례법 제8조), the FTA-vs-general comparison logic, and what is out of scope. It does not describe the shape or breakdown of the returned result, which is the main remaining gap.

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?

It is a single dense paragraph that is front-loaded with the core formula and then layers scope conditions and exclusions; nearly every clause carries operational information. It is slightly compressed—a short labeled structure for formula vs. exemptions vs. exclusions would scan faster—but there is no filler.

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

Completeness5/5

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

For a nine-parameter, formula-driven calculator with no output schema, the description supplies the complete computation logic, the exemption rules tied to specific parameters, the eligibility condition for the FTA path, and explicit exclusions. An agent can call this correctly and explain the result without further documentation.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds meaning beyond the schema: it links ftaRate/hasOrigin to the proof-of-origin requirement, links personal/fromUS to the two exemption thresholds, and clarifies that the FX rate is a customs rate. The interrelationship rules (which parameters combine to trigger the exemption or the FTA comparison) are genuinely extra information.

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?

The description opens with a specific verb and resource ('South Korea import duty and VAT') and immediately gives the exact computation chain (customs value → duty → VAT), so an agent knows precisely what it produces. It also draws scope boundaries against adjacent tools by excluding individual consumption/liquor taxes and disclaiming tariff classification.

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?

It clearly states the conditions under which the FTA comparison applies ('only with proof of origin, FTA관세특례법 제8조') and the personal-use exemption thresholds, including the higher USD 200 limit for US shipments. It also states the prerequisite that duty rates must be supplied by the user via HS code lookup, but gives no explicit alternative-tool routing (none of the listed siblings overlap, so this is a minor gap).

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.