Skip to main content
Glama

Korea monthly exports/imports by HS code (Korea Customs), English HS descriptions, YoY

kr_trade_hs
Read-onlyIdempotent

Use when you need South Korea's monthly trade for a product by HS code (e.g. 8542 chips, 870323 cars, 2710 petroleum). Data: Korea Customs Service, finalized monthly. Input: hs (2-10 digit prefix), optional month (YYYYMM, default latest), limit (1-100), sort (exports, imports, balance, total). Output: JSON totals (exports FOB, imports CIF, balance in USD, kg) with YoY % and 10-digit HSK lines with English HS descriptions and YoY. Use instead: kr_trade_exports_10day for the earliest 10-day totals. Example: ?hs=8542&month=202608 Price: $0.0045 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "hs": "<hs>"
    },
    "name": "kr_trade_hs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hsYesHS code prefix, 2-10 digits (e.g. 8542 integrated circuits, 870323 passenger cars)
sortNoLine order (default exports)
limitNoMax 10-digit lines returned (1-100, default 20)
monthNoMonth YYYYMM (default: latest finalized month)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed1 schema field changed
    • changedInput schema / properties / sort / description
      Previous value: -"Line order: exports (default), imports, balance or total"New value: +"Line order (default exports)"
  5. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the bar is lower. The description still adds real behavioral context: the source is finalized monthly Korea Customs data, the default month is the latest *finalized* month, and each call costs $0.0045 paid via x402 in USDC across five chains — a material pre-call consideration. It stops short of describing error behavior or what happens for an unfinished month, so it is strong but not exhaustive.

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 front-loaded correctly: purpose, then data, then input, then output, then alternative, then example, then price. Every sentence carries information, but the whole thing is packed into one dense run-on paragraph where the pricing tail and example URL are compressed rather than structured, which slightly hurts scanability.

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?

There is no output schema, so the description must describe returns — and it does: JSON totals (exports FOB, imports CIF, balance in USD and kg) with YoY percentages, plus 10-digit HSK lines with English HS descriptions and YoY. Combined with source provenance, defaults, cost and an example invocation, an agent has everything needed to call this correctly on the first attempt.

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 ranges and defaults for hs, month and limit are already documented. The description nonetheless adds meaning the schema lacks, notably the permitted sort values (exports, imports, balance, total) where the schema only says 'Line order (default exports)', plus the 2-10 digit prefix constraint. It does not explain the difference between balance and total, which leaves one genuine ambiguity.

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 names a specific verb and resource — monthly South Korea trade data by HS code — and immediately anchors it with concrete examples (8542 chips, 870323 cars, 2710 petroleum). It also states scope boundaries (Korea Customs, finalized monthly) that let an agent distinguish it from the 10-day sibling without opening the schema.

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

Usage Guidelines5/5

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

It opens with an explicit 'Use when you need...' trigger tied to HS-code product trade, and names an alternative with the exact condition that selects it: 'Use instead: kr_trade_exports_10day for the earliest 10-day totals.' That is a when-to-use plus a when-to-use-something-else, not just implied guidance.

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