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.

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": {
      "exporterCountry": "<exporterCountry>",
      "importerCountry": "<importerCountry>"
    },
    "name": "exim__tariff"
  }
}

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. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / context / anyOf
      Added value: +[
      +  {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "referenced": {
      +        "type": "boolean"
      +      },
      +      "rowCount": {
      +        "type": "integer"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "referenced",
      +      "rowCount",
      +      "url"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / context / type
      Removed value: -[
      -  "null",
      -  "boolean",
      -  "number",
      -  "string",
      -  "array",
      -  "object"
      -]
    • changedOutput schema / properties / data / properties / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/value0"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/value0"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "exportUrl": {
      +              "type": "string"
      +            },
      +            "payloadBytes": {
      +              "type": "integer"
      +            },
      +            "rowCount": {
      +              "type": "integer"
      +            },
      +            "token": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "exportUrl",
      +            "payloadBytes",
      +            "rowCount",
      +            "token",
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. 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"
      +]
  3. 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"
      +]
  4. 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"
      +]
  5. 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"
      +}
  6. 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 readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds behavior beyond that: it discloses an automatic web-summary fallback when no indexed row exists, which tells the agent to expect potentially non-authoritative evidence. It stops short of saying what the response looks like or how the corridor-overview mode differs in output shape.

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?

Two sentences, front-loaded with the return value and scoping, then the fallback caveat. Every clause carries information; nothing is redundant with the title or the schema.

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 complete parameter documentation, the description only needs to frame the two modes and the fallback caveat, which it does. The one gap is that 'can fall back to a web summary' reads as automatic, whereas the schema ties fallback to an explicit webFallback flag — a small tension the description could have resolved by referencing the flag.

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 every parameter (asOf, hsCode, product, webFallback, exporter/importerCountry) is already documented with formats and examples. The description only adds the product-vs-corridor framing, which helps interpret the required-parameter logic but adds no new syntax or constraint detail. 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 and resource ('Returns the effective duty rate and trade remedies') plus the scope (an exporter→importer corridor, per product or overview). An agent can distinguish it from lookup-style siblings, but it does not name the closely related duty tools (exim__duty__fta, exim__duty__exposure) that could also return rate-like data.

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 description implies two usage modes ('for a product or as a corridor overview') and mentions the fallback condition when no dataset row exists, which is real contextual guidance. However, with ~70 siblings including other duty/FTA tools, it never says when to choose this over those alternatives or what prerequisites apply.

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.