Skip to main content
Glama

Duties, taxes and NTMs

exim__trade__lookup
Read-onlyIdempotent

Searches duties, taxes, trade remedies and non-tariff measures for an exporter, importer and product or HS code. Use it for the full regulatory picture of a corridor.

Input Schema

NameRequiredDescriptionDefault
asOfNoDuty effective on YYYY-MM-DD; omitted means today in UTC
typeNoFilter to one data type
limitNoMax results (1-50, default 10)
hsCodeNoHS code (2-10 digits, no separators)
productNoProduct keyword (resolves to HS codes)
webFallbackNoAllow additional verified tariff evidence when no indexed row is present; unverified search summaries never establish a duty rate.
exporterCountryYesExporting country: name, ISO2 or ISO3 (e.g. Viet Nam, VN, VNM).
importerCountryYesImporting country: name, ISO2 or ISO3 (e.g. Germany, DE, DEU).

Output Schema

NameRequiredDescriptionDefault
dataYes
statsNo
_debugNo
summaryYes
warningsNo
nextActionsYes
correlationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / exporter
      Removed value: -{
      -  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / exporterCountry
      Added value: +{
      +  "description": "Exporting country: name, ISO2 or ISO3 (e.g. Viet Nam, VN, VNM).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / importer
      Removed value: -{
      -  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / importerCountry
      Added value: +{
      +  "description": "Importing country: name, ISO2 or ISO3 (e.g. Germany, DE, DEU).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "exporter",
      -  "importer"
      -]New value: +[
      +  "exporterCountry",
      +  "importerCountry"
      +]
  2. Changed5 schema fields changed
    • addedInput schema / properties / exporter
      Added value: +{
      +  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / exporterCountry
      Removed value: -{
      -  "description": "Exporting country: name, ISO2 or ISO3 (e.g. Viet Nam, VN, VNM).",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / importer
      Added value: +{
      +  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / importerCountry
      Removed value: -{
      -  "description": "Importing country: name, ISO2 or ISO3 (e.g. Germany, DE, DEU).",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "exporterCountry",
      -  "importerCountry"
      -]New value: +[
      +  "exporter",
      +  "importer"
      +]
  3. Changed5 schema fields changed
    • removedInput schema / properties / exporter
      Removed value: -{
      -  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / exporterCountry
      Added value: +{
      +  "description": "Exporting country: name, ISO2 or ISO3 (e.g. Viet Nam, VN, VNM).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / importer
      Removed value: -{
      -  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / importerCountry
      Added value: +{
      +  "description": "Importing country: name, ISO2 or ISO3 (e.g. Germany, DE, DEU).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "exporter",
      -  "importer"
      -]New value: +[
      +  "exporterCountry",
      +  "importerCountry"
      +]
  4. Changed18 schema fields changed
    • addedInput schema / not
      Added value: +{
      +  "anyOf": [
      +    {
      +      "not": {
      +        "not": {
      +          "properties": {
      +            "hsCode": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "product": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsCode",
      +            "product"
      +          ]
      +        }
      +      }
      +    }
      +  ]
      +}
    • removedInput schema / properties / --exporter
      Removed value: -{
      -  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      -  "type": "string"
      -}
    • removedInput schema / properties / --hsCode
      Removed value: -{
      -  "description": "HS code (2-10 digits, no separators)",
      -  "pattern": "^[0-9]*[1-9][0-9]*$",
      -  "type": "string"
      -}
    • removedInput schema / properties / --importer
      Removed value: -{
      -  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      -  "type": "string"
      -}
    • removedInput schema / properties / --limit
      Removed value: -{
      -  "description": "Max results (1-50, default 10)",
      -  "type": "integer"
      -}
    • removedInput schema / properties / --product
      Removed value: -{
      -  "description": "Product keyword (resolves to HS codes)",
      -  "type": "string"
      -}
    • removedInput schema / properties / --type
      Removed value: -{
      -  "description": "Filter to one data type",
      -  "enum": [
      -    "all",
      -    "duties",
      -    "taxes",
      -    "remedies",
      -    "ntm"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / --webFallback
      Removed value: -{
      -  "description": "Summarise a web search when the trade dataset has no row (default true); set false to get only dataset rows. Public credentials never use the web fallback.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / asOf
      Added value: +{
      +  "description": "Duty effective on YYYY-MM-DD; omitted means today in UTC",
      +  "format": "date",
      +  "maxLength": 8000,
      +  "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
      +  "type": "string"
      +}
    • addedInput schema / properties / exporter
      Added value: +{
      +  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / hsCode
      Added value: +{
      +  "description": "HS code (2-10 digits, no separators)",
      +  "maxLength": 10,
      +  "minLength": 2,
      +  "pattern": "^[0-9]*[1-9][0-9]*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / importer
      Added value: +{
      +  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max results (1-50, default 10)",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / product
      Added value: +{
      +  "description": "Product keyword (resolves to HS codes)",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Filter to one data type",
      +  "enum": [
      +    "all",
      +    "duties",
      +    "taxes",
      +    "remedies",
      +    "ntm"
      +  ],
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / webFallback
      Added value: +{
      +  "description": "Allow additional verified tariff evidence when no indexed row is present; unverified search summaries never establish a duty rate.",
      +  "format": "boolean",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "--exporter",
      -  "--importer"
      -]New value: +[
      +  "exporter",
      +  "importer"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "value0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applied_tariff": {
      +          "type": "string"
      +        },
      +        "ave_tariff": {
      +          "type": "string"
      +        },
      +        "custom_duties": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "exporter": {
      +          "type": "string"
      +        },
      +        "exporter_iso2": {
      +          "type": "string"
      +        },
      +        "exporter_iso3": {
      +          "type": "string"
      +        },
      +        "has_taxes": {
      +          "type": "boolean"
      +        },
      +        "importer": {
      +          "type": "string"
      +        },
      +        "importer_iso2": {
      +          "type": "string"
      +        },
      +        "importer_iso3": {
      +          "type": "string"
      +        },
      +        "ntm_measure_count": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "ntm_measure_titles": {
      +          "$ref": "#/$defs/value1"
      +        },
      +        "ntm_measures": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "observation": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/value2"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "product_code": {
      +          "type": "string"
      +        },
      +        "product_description": {
      +          "type": "string"
      +        },
      +        "summary": {
      +          "type": "string"
      +        },
      +        "tariff_regime": {
      +          "type": "string"
      +        },
      +        "taxes": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "trade_remedies": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "trade_remedy_types": {
      +          "$ref": "#/$defs/value3"
      +        },
      +        "year": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "exporter",
      +        "has_taxes",
      +        "importer",
      +        "product_code",
      +        "product_description",
      +        "year"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value10": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value2": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "basis": {
      +          "type": "string"
      +        },
      +        "code": {
      +          "type": "string"
      +        },
      +        "effectiveFrom": {
      +          "type": "string"
      +        },
      +        "effectiveTo": {
      +          "type": "string"
      +        },
      +        "exporter": {
      +          "type": "string"
      +        },
      +        "importer": {
      +          "type": "string"
      +        },
      +        "observedAt": {
      +          "type": "string"
      +        },
      +        "rate": {
      +          "type": "string"
      +        },
      +        "sourceUrl": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "basis",
      +        "code",
      +        "effectiveFrom",
      +        "exporter",
      +        "importer",
      +        "observedAt",
      +        "rate",
      +        "sourceUrl"
      +      ],
      +      "type": "object"
      +    },
      +    "value3": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value4": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value6"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value7": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value8": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value9"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value9": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value10"
      +    },
      +    "correlationId": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "context": {
      +          "type": [
      +            "null",
      +            "boolean",
      +            "number",
      +            "string",
      +            "array",
      +            "object"
      +          ]
      +        },
      +        "cursor": {
      +          "type": "string"
      +        },
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "$ref": "#/$defs/value0"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "context",
      +        "has_more",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "nextActions": {
      +      "$ref": "#/$defs/value5"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value7"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value8"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds no behavioral context beyond that - nothing about data freshness, rate limits, auth, or how the webFallback/verified-evidence path behaves.

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?

Two sentences, front-loaded with the verb+resource, followed by a short usage cue. No wasted text, though the second sentence is somewhat generic ('full regulatory picture').

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?

With a full output schema, rich annotations, and 100% schema coverage, the description only needs to frame the tool's scope - which it does by naming the data types and required corridor inputs. The main omission is that neither the description nor the framing clarifies the hsCode-or-product requirement versus the sibling duty/tariff tools.

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 eight parameters (asOf, type enum, limit, hsCode, product, webFallback, exporterCountry, importerCountry) are already documented in the schema. The description only echoes exporter/importer/product/HS code and adds no format or constraint detail, so the baseline 3 applies.

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 (Searches) and enumerates the resource set (duties, taxes, trade remedies, non-tariff measures) plus the key inputs (exporter, importer, product or HS code). It is clear on its own, but it never distinguishes itself from near-neighbors like exim__tariff, exim__duty__exposure, or exim__duty__fta, so an agent still has to guess which of those to pick.

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?

"Use it for the full regulatory picture of a corridor" gives a broad sense of when this fits, but there is no explicit when-not, no named alternative, and no prerequisites. It implies usage rather than guiding it.

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.