Calculate tariff scenario
calculate_tariff_scenarioCalculate US import duties for a shipment by stacking HTS base rates, active Chapter 99 additional tariffs, and MPF/HMF fees from origin and value inputs to estimate total landed cost.
Instructions
Returns the HTS code's MFN/FTA base rate, ALL active chapter 99 rules (IEEPA/301/232 additional duties) matching the origin as verbatim text, and MPF/HMF fees. The LLM should walk the chapter-99 exception chains itself to stack the right duty layers, explain each step to the user, and always note this is an estimate.
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": {
"hts_code": "<hts_code>",
"origin_country": "<origin_country>",
"customs_value_usd": "<customs_value_usd>"
},
"name": "calculate_tariff_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hts_code | Yes | 8-10 digit HTS code, with or without dots | |
| quantity | No | Quantity in the code's units (No./Dz Pcs...) — needed for per-piece specific duties | |
| weight_kg | No | Total weight (kg) — REQUIRED when the code carries a specific duty per kg (e.g. '12.4¢/kg') | |
| ocean_freight | No | Ocean shipment? (applies HMF) | |
| origin_country | Yes | Country of origin (English name, e.g. 'China', 'Vietnam', 'Mexico') | |
| customs_value_usd | Yes | Customs value of the shipment (USD) |