Skip to main content
Glama

duty

Import duty for one importing country x HS6 product code. Paid via x402: $0.01 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).

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

Input Schema

NameRequiredDescriptionDefault
hsYes6-digit HS code, e.g. 842220
originNoOptional origin country ISO3, e.g. CHN
importerYesImporting country. ISO3 country code, e.g. NGA, GHA, KEN, ARE, BRA, USA, DEU, IND
customs_valueNoOptional CIF value; returns duty amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 disclose the most consequential non-obvious trait: this tool does not return duty data directly but a ready-to-call URL requiring a second x402-paid fetch, plus the exact price ($0.01 USDC on Base) per call. It omits error/failure behavior (e.g. unpaid or unsupported country) and what the eventual payload looks like.

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?

Three short sentences, front-loaded with what is computed, then cost, then how to retrieve. No filler; the payment detail is dense but load-bearing for correct invocation.

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?

For a 4-parameter tool with no output schema and no annotations, the description covers scope, cost, and the unusual two-step retrieval contract. The main remaining gap is the shape of the final duty result and behavior on invalid or unsupported inputs.

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%, so importer, hs, origin, and customs_value are already documented with examples; baseline 3 applies. The description reinforces that importer is a single country and hs is HS6, but adds no meaning for origin or customs_value beyond the 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?

States a specific verb+resource ('Import duty') and its exact scope ('one importing country x HS6 product code'), which implicitly contrasts with the multi-country duty_compare sibling without naming it. The payment/invocation sentences are about delivery, not purpose, but the core is unambiguous.

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 'one importing country' framing implies this is the single-country lookup and duty_compare handles multi-country, but no alternative is named and no when-not-to-use condition is given. It does clearly tell the agent how to invoke the result (x402-capable HTTP client), which is useful procedural 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