Skip to main content
Glama

duty_compare

Compare import duty for one HS6 across 2-10 importing countries. Paid via x402: $0.03 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": {
      "hs": "<hs>",
      "importers": "<importers>"
    },
    "name": "duty_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
hsYes6-digit HS code
originNoOptional origin ISO3
importersYes2-10 ISO3 codes, comma separated, e.g. NGA,GHA,KEN
customs_valueNoOptional CIF value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 critical non-obvious trait: this tool does not return duty data itself, it returns a ready-to-call URL that must be invoked by an x402-capable HTTP client. It also names the price and payment rail ($0.03 USDC on Base), which matters for agent budgeting. What it omits is failure behavior and the response shape from that second call.

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 short sentences, front-loaded with the core comparison scope, then payment terms, then the invocation requirement. Nothing is padded and the ordering matches how an agent needs the information.

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 paid, two-step tool with no output schema, the description covers the essentials: what it computes, the price, and the client needed to actually retrieve results. A brief note on what the resolved call returns or how partial importer lists fail would make it complete.

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 all four parameters are already documented, and the baseline is 3. The description adds only the constraint that hs is a single HS6 and that the importer set is 2-10, which largely restates the schema; no format details or interaction between customs_value and origin are explained.

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?

States a specific verb (Compare), a specific resource (import duty), and bounded scope: one HS6 against 2-10 importing countries. That scope clause alone separates it from a single-country duty lookup or a landed-cost calculation, so an agent can pick it without opening the schema.

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?

Usage is only implied by the '2-10 importing countries' scope; there is no explicit statement of when to prefer this over duty, landed_cost, or sample_duty. The client-requirement sentence governs how to invoke it rather than when to choose it, leaving selection guidance for the agent to infer.

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