Skip to main content
Glama

calculate kr customs practice

calculate_kr_customs_practice
Read-onlyIdempotent

Korean customs practice estimates (관세법): mode travel = traveler's duty-free USD 800 and 20% simple rate with 30% self-report reduction (cap KRW 200,000) or 40%/60% penalty; mode direct = personal direct-purchase orders arriving the same day bundled against the USD 150 (USD 200 from US) exemption; mode rvc = FTA regional value content build-down or build-up against a threshold; mode refund = simplified fixed-rate drawback (간이정액환급) per KRW 10,000 of FOB with the 2-year claim limit. Rates come from the user; no classification or declaration.

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": {
      "mode": "<mode>"
    },
    "name": "calculate_kr_customs_practice"
  }
}

Input Schema

NameRequiredDescriptionDefault
fxNotravel/direct: customs FX rate KRW per USD
modeYesWhich calculation
rateNotravel: simple rate as a fraction (default 0.2)
valueNorvc: adjusted value (usually FOB)
caughtNotravel: caught without reporting (repeat = more than twice in 2 years)
fobKrwNorefund: export FOB in KRW
methodNorvc: method
ordersNodirect: orders
acceptedNorefund: export acceptance date (2-year limit)
dutyRateNodirect: duty rate as a fraction (default 0.08)
totalUsdNotravel: goods bought abroad in USD (excluding separate liquor/tobacco/perfume allowances)
thresholdNorvc: required RVC as a fraction, e.g. 0.4
selfReportNotravel: self-reported
originatingNorvc: value of originating materials (build-up)
nonOriginatingNorvc: value of non-originating materials
perTenThousandNorefund: drawback per KRW 10,000 from the fixed-rate table

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish a safe, idempotent, closed-world computation, so the description's job is to add context — and it does: rates must be supplied by the user and the tool performs no HS classification or declaration filing, which tells the agent what inputs it must prepare. It stops short of saying how multi-mode results are reported on edge cases (e.g., bundled orders partially over the exemption).

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?

Nearly the whole description is a single semicolon-chained sentence of dense domain detail; the mode-to-scenario mapping is front-loaded, but there is no formatting or sentence break to let an agent scan one mode at a time. Almost every clause is substantive, so the problem is structure and parseability rather than padding.

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

Completeness3/5

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

For a 16-parameter, four-mode calculator with no output schema, the description covers the inputs and statutory rules of each mode reasonably well. It never describes what comes back — a duty amount, a pass/fail against a threshold, a refund figure — which matters here because return shape differs sharply by mode, and that gap is left entirely to inference.

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 the baseline is 3; the description earns more by tying parameters to governing rules beyond the schema text — the USD 800 travel allowance, the 30% self-report reduction with a KRW 200,000 cap, the 40%/60% penalty split, the USD 150/200 direct-purchase thresholds, and the 2-year refund claim limit. It still leaves fx, totalUsd's exclusion carve-out, and the 0.08 direct duty default to the schema.

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 description names the resource precisely ('Korean customs practice estimates (관세법)') and enumerates four named modes with the specific computation each performs, so an agent knows this is a multi-mode estimator. It also scopes out adjacent work with 'no classification or declaration', though it never names a sibling tool it might be confused with.

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?

Mode routing is effectively usage guidance: travel for traveler allowances, direct for bundled same-day personal imports, rvc for FTA content tests, refund for simplified drawback. What is absent is any explicit exclusion or pointer to neighboring calculators such as calculate_kr_import_duty, so the agent must infer boundaries from the sibling's name alone.

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.