Skip to main content
Glama

HTS Lookup

estimate_landed_cost

Paid landed-cost estimate: MFN duty, Section 301 China when origin_country=CN, CBP MPF/HMF, freight, insurance, and other fees. Excludes Section 232/IEEPA/AD-CVD, quotas, exclusions, and FTAs. Requires x402 payment.

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": {
      "code": "<code>",
      "value_usd": "<value_usd>"
    },
    "name": "estimate_landed_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesHTS code, e.g. 6109.10.00
quantityNoUnits, for per-unit cost
value_usdYesGoods value
entry_typeNo
freight_usdNo
insurance_usdNo
origin_countryNoISO two-letter origin, for warnings
other_fees_usdNoBroker, handling, etc.
transport_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses a payment/authorization requirement (x402), conditional behavior tied to input (Section 301 applies only when origin_country=CN), and explicit coverage limits for duty programs. It omits the response shape and any pricing or rate-limit details, keeping it from a 5.

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?

Three tight clauses with no filler; the cost inclusions are front-loaded before the exclusions and the payment prerequisite, which is the right order for an agent deciding whether to call it.

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 9-parameter, no-output-schema, no-annotation tool the description covers scope and cost composition well, but it does not explain the semantics of entry_type or transport_mode, nor what the estimate response contains or its precision. Adequate but with clear gaps.

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 56%, and the description compensates by explaining that origin_country drives Section 301 applicability and that fees/freight/insurance are aggregated into the total, plus that quantity enables per-unit costing. It leaves entry_type's four enum values and how transport_mode affects HMF unexplained, which is a remaining gap.

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?

States a specific verb and resource ("Paid landed-cost estimate") and enumerates the cost components included, which lets an agent distinguish it from a duty-only sibling like estimate_duty without opening the schema. It does not explicitly name or contrast with that sibling, so it stops short of a 5.

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 clearly delimits scope by listing what is excluded (Section 232, IEEPA, AD-CVD, quotas, exclusions, FTAs) and notes the x402 payment requirement, implying it is for indicative MFN/301 landed cost only. However, it never says when to prefer estimate_duty or get_hts_code instead, leaving the routing decision to inference.

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