Skip to main content
Glama

FTA utilization

exim__duty__fta
Read-onlyIdempotent

Shows how much trade into a market used a free-trade-agreement preference versus paid full duty, by agreement. Use it to find unused FTA savings.

Input Schema

NameRequiredDescriptionDefault
toNoLatest month, YYYY-MM.
fromNoEarliest month, YYYY-MM.
limitNomax rows (1-1000, default 100)
hsCodeNoHS code at 2, 4 or 6 digits; shorter codes match the whole family (0901 = all coffee). Do not pad with zeros (090100 matches nothing).
sourceNodataset source filter
originCountryNoOrigin (exporting) country, ISO2 code (e.g. VN).
destinationCountryNoDestination (importing) country, ISO2 code (e.g. US, DE).

Output Schema

NameRequiredDescriptionDefault
dataYes
statsNo
_debugNo
summaryYes
warningsNo
nextActionsYes
correlationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / not / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "anyOf": [
      -        {
      -          "properties": {
      -            "hs": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hs"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "hs": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hs"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "dest": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "dest"
      -          ]
      -        }
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "hsCode": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsCode"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "hsCode": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsCode"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "destinationCountry": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "destinationCountry"
      +          ]
      +        }
      +      ]
      +    }
      +  }
      +]
    • removedInput schema / properties / dest
      Removed value: -{
      -  "description": "destination/market country (ISO 2) (the importing country)",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / destinationCountry
      Added value: +{
      +  "description": "Destination (importing) country, ISO2 code (e.g. US, DE).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / properties / from / description
      Previous value: -"earliest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"New value: +"Earliest month, YYYY-MM."
    • removedInput schema / properties / hs
      Removed value: -{
      -  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / hsCode
      Added value: +{
      +  "description": "HS code at 2, 4 or 6 digits; shorter codes match the whole family (0901 = all coffee). Do not pad with zeros (090100 matches nothing).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / origin
      Removed value: -{
      -  "description": "origin country (ISO 2) (the sourcing country) filter",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / originCountry
      Added value: +{
      +  "description": "Origin (exporting) country, ISO2 code (e.g. VN).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / properties / to / description
      Previous value: -"latest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"New value: +"Latest month, YYYY-MM."
  2. Changed9 schema fields changed
    • changedInput schema / not / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "anyOf": [
      -        {
      -          "properties": {
      -            "hsCode": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hsCode"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "hsCode": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hsCode"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "destinationCountry": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "destinationCountry"
      -          ]
      -        }
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "hs": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hs"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "hs": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hs"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "dest": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "dest"
      +          ]
      +        }
      +      ]
      +    }
      +  }
      +]
    • addedInput schema / properties / dest
      Added value: +{
      +  "description": "destination/market country (ISO 2) (the importing country)",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / destinationCountry
      Removed value: -{
      -  "description": "Destination (importing) country, ISO2 code (e.g. US, DE).",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • changedInput schema / properties / from / description
      Previous value: -"Earliest month, YYYY-MM."New value: +"earliest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"
    • addedInput schema / properties / hs
      Added value: +{
      +  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / hsCode
      Removed value: -{
      -  "description": "HS code at 2, 4 or 6 digits; shorter codes match the whole family (0901 = all coffee). Do not pad with zeros (090100 matches nothing).",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / origin
      Added value: +{
      +  "description": "origin country (ISO 2) (the sourcing country) filter",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / originCountry
      Removed value: -{
      -  "description": "Origin (exporting) country, ISO2 code (e.g. VN).",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • changedInput schema / properties / to / description
      Previous value: -"Latest month, YYYY-MM."New value: +"latest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"
  3. Changed9 schema fields changed
    • changedInput schema / not / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "anyOf": [
      -        {
      -          "properties": {
      -            "hs": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hs"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "hs": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "hs"
      -          ]
      -        },
      -        {
      -          "properties": {
      -            "dest": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "dest"
      -          ]
      -        }
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "hsCode": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsCode"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "hsCode": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsCode"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "destinationCountry": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "destinationCountry"
      +          ]
      +        }
      +      ]
      +    }
      +  }
      +]
    • removedInput schema / properties / dest
      Removed value: -{
      -  "description": "destination/market country (ISO 2) (the importing country)",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / destinationCountry
      Added value: +{
      +  "description": "Destination (importing) country, ISO2 code (e.g. US, DE).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / properties / from / description
      Previous value: -"earliest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"New value: +"Earliest month, YYYY-MM."
    • removedInput schema / properties / hs
      Removed value: -{
      -  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / hsCode
      Added value: +{
      +  "description": "HS code at 2, 4 or 6 digits; shorter codes match the whole family (0901 = all coffee). Do not pad with zeros (090100 matches nothing).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • removedInput schema / properties / origin
      Removed value: -{
      -  "description": "origin country (ISO 2) (the sourcing country) filter",
      -  "maxLength": 8000,
      -  "type": "string"
      -}
    • addedInput schema / properties / originCountry
      Added value: +{
      +  "description": "Origin (exporting) country, ISO2 code (e.g. VN).",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • changedInput schema / properties / to / description
      Previous value: -"latest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)"New value: +"Latest month, YYYY-MM."
  4. Changed17 schema fields changed
    • addedInput schema / not
      Added value: +{
      +  "anyOf": [
      +    {
      +      "not": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "hs": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "hs"
      +            ]
      +          },
      +          {
      +            "properties": {
      +              "hs": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "hs"
      +            ]
      +          },
      +          {
      +            "properties": {
      +              "dest": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "dest"
      +            ]
      +          }
      +        ]
      +      }
      +    }
      +  ]
      +}
    • removedInput schema / properties / --dest
      Removed value: -{
      -  "description": "destination/market country (ISO 2) (the importing country)",
      -  "type": "string"
      -}
    • removedInput schema / properties / --from
      Removed value: -{
      -  "description": "earliest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)",
      -  "pattern": "^[0-9]{4}(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01]))?)?$",
      -  "type": "string"
      -}
    • removedInput schema / properties / --hs
      Removed value: -{
      -  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --hs6
      Removed value: -{
      -  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --limit
      Removed value: -{
      -  "description": "max rows (1-1000, default 100)",
      -  "type": "integer"
      -}
    • removedInput schema / properties / --origin
      Removed value: -{
      -  "description": "origin country (ISO 2) (the sourcing country) filter",
      -  "type": "string"
      -}
    • removedInput schema / properties / --source
      Removed value: -{
      -  "description": "dataset source filter",
      -  "type": "string"
      -}
    • removedInput schema / properties / --to
      Removed value: -{
      -  "description": "latest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)",
      -  "pattern": "^[0-9]{4}(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01]))?)?$",
      -  "type": "string"
      -}
    • addedInput schema / properties / dest
      Added value: +{
      +  "description": "destination/market country (ISO 2) (the importing country)",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "earliest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)",
      +  "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 / hs
      Added value: +{
      +  "description": "HS code at ANY granularity — 2/4/6-digit; a shorter code is a broader family (e.g. 0901 = all coffee). Do NOT pad to 6 digits: 090100 matches nothing.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "max rows (1-1000, default 100)",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / origin
      Added value: +{
      +  "description": "origin country (ISO 2) (the sourcing country) filter",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "dataset source filter",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "latest month (YYYY-MM; YYYY or YYYY-MM-DD also accepted)",
      +  "maxLength": 8000,
      +  "pattern": "^[0-9]{4}(-(0[1-9]|1[0-2])(-(0[1-9]|[12][0-9]|3[01]))?)?$",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "value0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "agreementName": {
      +          "type": "string"
      +        },
      +        "avgTariffRatePct": {
      +          "type": "number"
      +        },
      +        "fullDutyPaid": {
      +          "type": "integer"
      +        },
      +        "preferenceUsed": {
      +          "type": "integer"
      +        },
      +        "shipmentCount": {
      +          "type": "integer"
      +        },
      +        "unusedValueUsd": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "utilizationPct": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "agreementName",
      +        "avgTariffRatePct",
      +        "fullDutyPaid",
      +        "preferenceUsed",
      +        "shipmentCount",
      +        "unusedValueUsd",
      +        "utilizationPct"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value2": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value3"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value3": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value4": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value6"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "value7": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value7"
      +    },
      +    "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/value2"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value4"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value5"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this a safe, idempotent, closed-world read, so the safety burden is light. The description adds that the result is a comparison aggregated by agreement, which is useful context, but says nothing about pagination limits, response granularity, or the schema constraint that at least one of hsCode/destinationCountry must be supplied.

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 tight sentences with the purpose front-loaded and the use case second. No filler, no repetition of schema or annotation content.

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 and 100% parameter documentation, the description does not need to explain return values, and the read-only annotations cover the safety profile. It is nearly complete, missing only a pointer to differentiate it from the adjacent 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%, with dates, limit, hsCode format guidance, and ISO2 country codes all documented in the schema itself. The description adds no parameter-level meaning beyond that, 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?

The description states a specific verb and resource: it shows how much trade used an FTA preference versus full duty, broken down by agreement. That is more than a restatement of the title, but it never distinguishes itself from related siblings such as exim__duty__exposure, exim__tariff, or exim__landed__cost, so an agent must guess which duty tool fits.

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 to find unused FTA savings' gives a use case but no explicit when-not conditions and no alternatives. It implies the usage context without helping the agent choose against the other duty/tariff tools.

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.