Skip to main content
Glama

Tariff for a corridor

exim__tariff
Read-onlyIdempotent

Returns the effective duty rate and trade remedies between an exporting and importing country, for a product or as a corridor overview. Can fall back to a web summary when the dataset has no row.

Input Schema

NameRequiredDescriptionDefault
asOfNoDuty effective on YYYY-MM-DD; omitted means today in UTC
hsCodeNoHS code (2-10 digits, with optional separators)
productNoProduct / goods description
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. Changed13 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"
      +          ]
      +        }
      +      }
      +    },
      +    {
      +      "not": {
      +        "if": {
      +          "allOf": [
      +            {
      +              "allOf": [
      +                {
      +                  "properties": {
      +                    "webFallback": {
      +                      "not": {
      +                        "type": "null"
      +                      }
      +                    }
      +                  },
      +                  "required": [
      +                    "webFallback"
      +                  ]
      +                },
      +                {
      +                  "not": {
      +                    "properties": {
      +                      "webFallback": {
      +                        "anyOf": [
      +                          {
      +                            "const": true
      +                          },
      +                          {
      +                            "pattern": "^\\s*([Tt][Rr][Uu][Ee]|1)\\s*$",
      +                            "type": "string"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "webFallback"
      +                    ]
      +                  }
      +                }
      +              ]
      +            }
      +          ]
      +        },
      +        "then": {
      +          "anyOf": [
      +            {
      +              "properties": {
      +                "product": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "product"
      +              ]
      +            },
      +            {
      +              "properties": {
      +                "hsCode": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "hsCode"
      +              ]
      +            }
      +          ]
      +        }
      +      }
      +    },
      +    {
      +      "not": {
      +        "x-argumentRequirement": {
      +          "if": {
      +            "allOf": []
      +          },
      +          "then": {
      +            "anyOf": [
      +              {
      +                "properties": {
      +                  "product": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "product"
      +                ]
      +              },
      +              {
      +                "properties": {
      +                  "hsCode": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "hsCode"
      +                ]
      +              }
      +            ]
      +          }
      +        }
      +      }
      +    }
      +  ]
      +}
    • 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 / --importer
      Removed value: -{
      -  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      -  "type": "string"
      -}
    • removedInput schema / properties / --product
      Removed value: -{
      -  "description": "Product / goods description",
      -  "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, with optional separators)",
      +  "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"
      +}
    • addedInput schema / properties / product
      Added value: +{
      +  "description": "Product / goods description",
      +  "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": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "duty": {
      +          "type": "string"
      +        },
      +        "observation": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/value1"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "regime": {
      +          "type": "string"
      +        },
      +        "year": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "description",
      +        "duty",
      +        "year"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "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"
      +    },
      +    "value2": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value3": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value4"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value4": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value7"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value7": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "value8": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value8"
      +    },
      +    "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/value3"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value5"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value6"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this as a safe read-only, idempotent, open-world lookup, so the safety profile is covered. The description adds genuine behavioral context beyond that: the automatic fallback to a web summary when the dataset has no row. It is somewhat softer than the schema's own webFallback caveat, but it does not contradict the annotations.

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 tight sentences with no filler, and the core purpose is front-loaded ahead of the fallback caveat. Appropriately sized for the information it conveys.

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

Completeness5/5

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

An output schema exists, so return values need not be explained, and the schema fully documents all six parameters including the conditional product/hsCode requirement. For a read-only lookup with rich structured fields, the description covers what an agent needs without redundancy.

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 the baseline is 3. The description mentions the product/corridor distinction and the web fallback, but adds no format, syntax, or selection guidance beyond what the schema fields already document (e.g. HS code digit ranges, country code formats).

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 ('Returns the effective duty rate and trade remedies between an exporting and importing country') and distinguishes its two modes ('for a product or as a corridor overview'). However, it never names or differentiates itself from close siblings like exim__duty__fta, exim__duty__exposure, or exim__trade__lookup, so an agent cannot route confidently on the description alone.

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: the description hints at two modes (per-product lookup vs corridor overview) but gives no explicit when-to-use, when-not-to-use, or named alternatives. The choice between 'product' and 'hsCode', and when to set webFallback, is left entirely 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.