Skip to main content
Glama

HTS Lookup

estimate_duty

Paid MFN duty estimate for a customs value. Requires x402 payment. Does not include Section 301/AD-CVD.

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_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
value_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses important behavior: the tool is paid via x402 and its result excludes certain duty categories. It does not explain payment flow, failure modes, rate limits, or what the response contains, leaving meaningful behavioral gaps.

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 three short sentences with no wasted wording. The core purpose is front-loaded, followed by payment and scope limitations.

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

Completeness2/5

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

There are no annotations, no output schema, and zero schema description coverage for two required parameters. The description covers payment and duty exclusions but leaves critical details about the code parameter, currency, and output format unspecified, which is insufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for both parameters. It implies value_usd is a customs value but does not state currency or formatting, and it never explains what 'code' should contain (e.g., HTS code format or scope). The description adds only minimal meaning beyond the bare 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 states a specific action and scope: 'Paid MFN duty estimate for a customs value.' It also clarifies that the estimate is limited to MFN duty and excludes Section 301/AD-CVD, which distinguishes it from broader landed-cost tools. However, it does not explicitly name or contrast with sibling tools like estimate_landed_cost.

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?

It provides some usage context by stating that payment is required and that Section 301/AD-CVD are excluded. These are useful exclusions, but there is no explicit guidance on when to use this tool instead of estimate_landed_cost or how to choose between them.

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