Skip to main content
Glama

Kịch bản thuế cho một mã HTS + xuất xứ + trị giá

calculate_tariff_scenario

Calculate total US import duties for an HTS code by combining MFN/FTA rates, Chapter 99 additional tariffs (IEEPA/301/232), and MPF/HMF fees based on origin, value, and quantity.

Instructions

Trả về thuế MFN/FTA của mã HTS, TOÀN BỘ rule chương 99 (thuế bổ sung IEEPA/301/232) khớp xuất xứ ở dạng nguyên văn, và phí MPF/HMF. LLM hãy tự đọc chuỗi exception của chương 99 để cộng đúng lớp thuế, giải thích từng bước cho user, và luôn nhắc đây là ước tính.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hts_codeYesMã HTS 8-10 số, có chấm hay không đều được
quantityNoSố lượng theo đơn vị của mã (No./Dz Pcs...) — cần cho thuế đặc thù theo chiếc
weight_kgNoTổng trọng lượng (kg) — BẮT BUỘC nếu mã có thuế đặc thù theo kg (vd '12.4¢/kg')
ocean_freightNoHàng đi đường biển? (áp HMF)
origin_countryYesNước xuất xứ (tên tiếng Anh, vd 'China', 'Vietnam', 'Mexico')
customs_value_usdYesTrị giá hải quan lô hàng (USD)
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It explicitly notes that the tool returns Chapter 99 rules verbatim and instructs the LLM to read the exception string to layer duties correctly, and to always remind the user that the result is an estimate. This goes beyond the schema by revealing the output format and the need for interpretation.

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

Conciseness5/5

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

The description is two sentences: the first front-loads the core function, the second gives clear LLM instructions. Every word earns its place, with no redundancy or filler.

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?

The description defines the key return values (MFN/FTA duties, Chapter 99 rules, MPF/HMF fees) and includes a processing protocol for the LLM. Given the absence of an output schema, it is fairly complete, though it does not address edge cases like invalid codes or missing unit-based inputs (which the schema partially covers).

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%, and the tool description does not add meaningful detail beyond what the schema already states for each parameter. It mentions origin and value only generically, while the schema gives specific usage constraints for quantity, weight, and ocean_freight.

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 clearly states the tool returns MFN/FTA duties, all Chapter 99 rules (IEEPA/301/232) verbatim, and MPF/HMF fees. This specific verb-resource pairing distinguishes it from sibling search/watch/update tools.

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

Usage Guidelines3/5

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

The description implies the tool is for tariff calculation with Chapter 99 layers, but it does not explicitly state when to use it versus alternatives like search_hs_candidates or watch_tariff_changes. The context is clear enough to infer usage, but no exclusionary guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opsloft/tariff-resolver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server