Skip to main content
Glama
FreightUtils MCP Server

FreightUtils MCP Server

uk_duty_calculator

Read-onlyIdempotent

Estimates UK import duty and VAT from a 10-digit commodity code using live GOV.UK Trade Tariff rates: computes CIF value, duty by origin country, and VAT on the duty-inclusive total.

Instructions

Estimate UK import duty and VAT for a commodity code from the LIVE GOV.UK Trade Tariff: CIF = customs_value + freight_cost + insurance_cost (GBP); duty = CIF x the rate for the origin country; VAT on the duty-inclusive value. commodity_code must be the declarable 10 digits: a 6- or 8-digit code is refused — never padded with zeros — with the declarable codes beneath it. To find the code first use hs_code_lookup; for who pays these costs incoterms_lookup. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. An estimate, not a customs ruling — confirm with a customs broker or HMRC.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "uk_duty_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoBatch: up to 10 lines, each { commodity_code, origin_country, customs_value, freight_cost?, insurance_cost?, incoterm? }. Send alone.
incotermNoIncoterms 2020 basis of the customs_value — documents which costs are already included.
freight_costNoFreight cost in GBP, 0 or more — added to the CIF value. Default: 0.
customs_valueNoGoods value, GBP. Required unless lines[] is sent.
commodity_codeNoRequired unless lines[] is sent. The declarable 10-digit UK commodity code, e.g. "8471300000".
insurance_costNoInsurance cost in GBP, 0 or more — added to the CIF value. Default: 0.
origin_countryNoRequired unless lines[] is sent. ISO 2-letter country of origin.

Output Schema

NameRequiredDescriptionDefault
okYes
_metaNo
as_ofNo
resultYes
statusNo
_sourceYes
editionNo
citationYes
validityNo
warningsNo
confidenceYes
missing_inputsNo
blocking_errorsNo
envelope_versionYes
normalized_inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.34.4
    • changedInput schema / properties / commodity_code / description
      Previous value: -"Required unless lines[] is sent. UK tariff commodity code — the declarable 10 digits. Example: \"8471300000\" (portable computers). A 6- or 8-digit code is refused with the declarable codes beneath it."New value: +"Required unless lines[] is sent. The declarable 10-digit UK commodity code, e.g. \"8471300000\"."
    • changedInput schema / properties / customs_value / description
      Previous value: -"Goods value in GBP. Required unless lines[] is sent. Example: 1000."New value: +"Goods value, GBP. Required unless lines[] is sent."
    • changedInput schema / properties / lines / description
      Previous value: -"Batch: up to 10 lines, each { commodity_code, origin_country, customs_value, freight_cost?, insurance_cost?, incoterm? }. Send alone; answered as results[] in input order, each line its own receipt. One call against the daily limit, N against the Pro monthly allowance."New value: +"Batch: up to 10 lines, each { commodity_code, origin_country, customs_value, freight_cost?, insurance_cost?, incoterm? }. Send alone."
    • changedInput schema / properties / origin_country / description
      Previous value: -"Required unless lines[] is sent. ISO 2-letter country of origin. Examples: \"CN\", \"DE\", \"US\"."New value: +"Required unless lines[] is sent. ISO 2-letter country of origin."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / kind / description
      Removed value: -"watched (its upstream is fetched daily) or checksum-only (no upstream of its own)."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / last_success / description
      Removed value: -"The last day (YYYY-MM-DD) the upstream check succeeded; null when none is recorded."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / reason / description
      Removed value: -"Why the state is unknown."
    • removedOutput schema / properties / _meta / properties / upstream / properties / stale / description
      Removed value: -"True only when a dataset below missed its upstream check window (window_missed)."
    • removedOutput schema / properties / _meta / properties / upstream / properties / state / description
      Removed value: -"The worst state of the datasets below."
    • removedOutput schema / properties / _meta / properties / upstream / properties / state_read_at / description
      Removed value: -"When the site upstream check recorded the state (ISO 8601); null when it could not be read."
  2. Changed2 schema fields changedv2.34.0
    • addedOutput schema / properties / _meta / properties / ids
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "pattern": {
      +      "type": "string"
      +    },
      +    "scheme": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scheme",
      +    "pattern"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / upstream
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "datasets": {
      +      "additionalProperties": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "kind": {
      +            "description": "watched (its upstream is fetched daily) or checksum-only (no upstream of its own).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_success": {
      +            "description": "The last day (YYYY-MM-DD) the upstream check succeeded; null when none is recorded.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "reason": {
      +            "description": "Why the state is unknown.",
      +            "type": "string"
      +          },
      +          "stale": {
      +            "type": "boolean"
      +          },
      +          "state": {
      +            "enum": [
      +              "in_step",
      +              "changed_upstream",
      +              "schema_drift",
      +              "unreachable",
      +              "window_missed",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "window_days": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "kind",
      +          "last_success",
      +          "window_days",
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "stale": {
      +      "description": "True only when a dataset below missed its upstream check window (window_missed).",
      +      "type": "boolean"
      +    },
      +    "state": {
      +      "description": "The worst state of the datasets below.",
      +      "enum": [
      +        "in_step",
      +        "changed_upstream",
      +        "schema_drift",
      +        "unreachable",
      +        "window_missed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "state_read_at": {
      +      "description": "When the site upstream check recorded the state (ISO 8601); null when it could not be read.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "stale",
      +    "state_read_at",
      +    "datasets"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv2.31.0
    • removedOutput schema / properties / _meta / properties / receipt / properties / reason / const
      Removed value: -"key_required"
    • addedOutput schema / properties / _meta / properties / receipt / properties / reason / enum
      Added value: +[
      +  "key_required",
      +  "quota"
      +]
  4. Changed9 schema fields changedv2.27.0
    • changedInput schema / properties / commodity_code / description
      Previous value: -"UK tariff commodity code — the declarable 10 digits. Example: \"8471300000\" (portable computers). A 6- or 8-digit code is refused with the declarable codes beneath it."New value: +"Required unless lines[] is sent. UK tariff commodity code — the declarable 10 digits. Example: \"8471300000\" (portable computers). A 6- or 8-digit code is refused with the declarable codes beneath it."
    • changedInput schema / properties / customs_value / description
      Previous value: -"Goods value in GBP. Example: 1000."New value: +"Goods value in GBP. Required unless lines[] is sent. Example: 1000."
    • addedInput schema / properties / lines
      Added value: +{
      +  "description": "Batch: up to 10 lines, each { commodity_code, origin_country, customs_value, freight_cost?, insurance_cost?, incoterm? }. Send alone; answered as results[] in input order, each line its own receipt. One call against the daily limit, N against the Pro monthly allowance.",
      +  "items": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / origin_country / description
      Previous value: -"ISO 2-letter country of origin. Examples: \"CN\", \"DE\", \"US\"."New value: +"Required unless lines[] is sent. ISO 2-letter country of origin. Examples: \"CN\", \"DE\", \"US\"."
    • removedInput schema / required
      Removed value: -[
      -  "commodity_code",
      -  "origin_country",
      -  "customs_value"
      -]
    • addedOutput schema / properties / _meta / properties / check_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / edition_basis
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / receipt
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "dataset_version": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "engine_version": {
      +      "type": "string"
      +    },
      +    "inputs": {},
      +    "reason": {
      +      "const": "key_required",
      +      "type": "string"
      +    },
      +    "receipt_hash": {
      +      "type": "string"
      +    },
      +    "result": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "schema_version": {
      +      "type": "string"
      +    },
      +    "stored": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "stored",
      +    "reason",
      +    "schema_version",
      +    "receipt_hash",
      +    "created_at",
      +    "tool",
      +    "inputs",
      +    "dataset_version",
      +    "engine_version",
      +    "result"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / receipt_url
      Added value: +{
      +  "type": "string"
      +}
  5. Changed10 schema fields changedv2.24.0
    • addedOutput schema / properties / _meta
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "identify": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / as_of
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / blocking_errors / items / properties / recovery / properties / params / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / edition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applies_from": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "may_apply_until": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "applies_from",
      +        "may_apply_until"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / envelope_version / enum
      Previous value: -[
      -  "1",
      -  "1.1"
      -]New value: +[
      +  "1",
      +  "1.1",
      +  "1.2"
      +]
    • addedOutput schema / properties / missing_inputs
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / normalized_input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "cif_value": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "commodity_code": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "commodity_description": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "disclaimer": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "duty_amount": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "duty_rate": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "duty_rate_percent": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "origin_country": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "origin_country_name": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "total_import_taxes": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "total_landed_cost": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "vat_amount": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "vat_rate": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "vat_rate_percent": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "warnings": {
      -        "anyOf": [
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "cif_value": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "commodity_code": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "commodity_description": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "disclaimer": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "duty_amount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "duty_rate": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "duty_rate_percent": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "origin_country": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "origin_country_name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "total_import_taxes": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "total_landed_cost": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "vat_amount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "vat_rate": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "vat_rate_percent": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "warnings": {
      +        "anyOf": [
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "ok",
      +    "partial",
      +    "not_found",
      +    "unsupported",
      +    "ambiguous"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / warnings / items / properties / details / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  6. Changed6 schema fields changedv2.22.3
    • changedInput schema / properties / commodity_code / description
      Previous value: -"HS/UK tariff code, 6-10 digits. Example: \"8471300000\" (portable computers). 6-digit codes may need the declarable 8/10-digit line."New value: +"UK tariff commodity code — the declarable 10 digits. Example: \"8471300000\" (portable computers). A 6- or 8-digit code is refused with the declarable codes beneath it."
    • changedInput schema / properties / commodity_code / pattern
      Previous value: -"^\\d{6,10}$"New value: +"^[\\d\\s]{6,14}$"
    • changedInput schema / properties / freight_cost / description
      Previous value: -"Freight cost in GBP — added to the CIF value. Default: 0."New value: +"Freight cost in GBP, 0 or more — added to the CIF value. Default: 0."
    • addedInput schema / properties / freight_cost / minimum
      Added value: +0
    • changedInput schema / properties / insurance_cost / description
      Previous value: -"Insurance cost in GBP — added to the CIF value. Default: 0."New value: +"Insurance cost in GBP, 0 or more — added to the CIF value. Default: 0."
    • addedInput schema / properties / insurance_cost / minimum
      Added value: +0
  7. Changed5 schema fields changedv2.17.2
    • addedOutput schema / properties / _source / properties / authority_current_edition
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / checked_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / dataset_edition
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / envelope_version / const
      Removed value: -"1"
    • addedOutput schema / properties / envelope_version / enum
      Added value: +[
      +  "1",
      +  "1.1"
      +]
  8. Changed7 schema fields changedv2.11.0
    • changedInput schema / properties / commodity_code / description
      Previous value: -"HS/tariff code (6–10 digits, e.g., \"847989\")"New value: +"HS/UK tariff code, 6-10 digits. Example: \"8471300000\" (portable computers). 6-digit codes may need the declarable 8/10-digit line."
    • changedInput schema / properties / customs_value / description
      Previous value: -"Goods value in GBP"New value: +"Goods value in GBP. Example: 1000."
    • changedInput schema / properties / freight_cost / description
      Previous value: -"Freight cost in GBP (added to CIF value)"New value: +"Freight cost in GBP — added to the CIF value. Default: 0."
    • changedInput schema / properties / incoterm / description
      Previous value: -"Incoterm basis"New value: +"Incoterms 2020 basis of the customs_value — documents which costs are already included."
    • changedInput schema / properties / insurance_cost / description
      Previous value: -"Insurance cost in GBP (added to CIF value)"New value: +"Insurance cost in GBP — added to the CIF value. Default: 0."
    • changedInput schema / properties / origin_country / description
      Previous value: -"ISO 2-letter origin country code (e.g., \"CN\", \"DE\")"New value: +"ISO 2-letter country of origin. Examples: \"CN\", \"DE\", \"US\"."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "_source": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "checked": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "provenance_status": {
      +          "enum": [
      +            "verified",
      +            "pending-verification",
      +            "computed",
      +            "live"
      +          ],
      +          "type": "string"
      +        },
      +        "source_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "checked",
      +        "provenance_status"
      +      ],
      +      "type": "object"
      +    },
      +    "blocking_errors": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "recovery": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "action": {
      +                "type": "string"
      +              },
      +              "params": {
      +                "additionalProperties": {},
      +                "type": "object"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "action"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "recovery"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "citation": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "qualifier": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "confidence": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "basis": {
      +          "enum": [
      +            "deterministic",
      +            "provenance",
      +            "match_quality",
      +            "freshness"
      +          ],
      +          "type": "string"
      +        },
      +        "level": {
      +          "enum": [
      +            "high",
      +            "medium",
      +            "low"
      +          ],
      +          "type": "string"
      +        },
      +        "score": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "level",
      +        "basis"
      +      ],
      +      "type": "object"
      +    },
      +    "envelope_version": {
      +      "const": "1",
      +      "type": "string"
      +    },
      +    "normalized_input": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "result": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "cif_value": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "commodity_code": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "commodity_description": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "disclaimer": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "duty_amount": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "duty_rate": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "duty_rate_percent": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "origin_country": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "origin_country_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "source": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "total_import_taxes": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "total_landed_cost": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "vat_amount": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "vat_rate": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "vat_rate_percent": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "warnings": {
      +              "anyOf": [
      +                {
      +                  "items": {},
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "validity": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "as_of": {
      +          "type": "string"
      +        },
      +        "effective_from": {
      +          "type": "string"
      +        },
      +        "effective_to": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of"
      +      ],
      +      "type": "object"
      +    },
      +    "warnings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": {},
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "envelope_version",
      +    "ok",
      +    "result",
      +    "confidence",
      +    "_source",
      +    "citation"
      +  ],
      +  "type": "object"
      +}
  9. Changed5 schema fields changedv2.5.0
    • changedInput schema / properties / incoterm / description
      Previous value: -"Incoterm (e.g., \"FOB\", \"CIF\", \"EXW\")"New value: +"Incoterm basis"
    • addedInput schema / properties / incoterm / enum
      Added value: +[
      +  "EXW",
      +  "FCA",
      +  "FAS",
      +  "FOB",
      +  "CFR",
      +  "CIF",
      +  "CPT",
      +  "CIP",
      +  "DAP",
      +  "DPU",
      +  "DDP"
      +]
    • removedInput schema / properties / origin_country / maxLength
      Removed value: -2
    • removedInput schema / properties / origin_country / minLength
      Removed value: -2
    • changedInput schema / properties / origin_country / pattern
      Previous value: -"^[A-Z]{2}$"New value: +"^[A-Za-z]{2}$"
  10. Addedv2.1.1

TDQS

A4.7/5.0
Behavior4/5

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

Adds real context beyond the annotations: live GOV.UK data source, GBP currency, the CIF computation chain, the hard rejection of 6/8-digit codes and the rate-limit error shape carrying reset_at in UTC. The safety profile (readOnly, idempotent, non-destructive) is already covered by annotations, though "LIVE GOV.UK Trade Tariff" sits in mild tension with openWorldHint=false since it implies fetching from an external system.

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?

Front-loaded with the purpose and formula, then transitions, then error/limits, then the disclaimer. No filler sentences; each clause (padding rule, reset_at, sibling pointers) carries information an agent would otherwise have to discover by trial.

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?

Covers what an output schema and annotations leave open: cost formula, currency, code-validation behavior, rate-limit recovery, and batch constraints for a 7-parameter tool. Assumptions and limits are disclosed, so nothing material to a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description adds meaning the schema cannot: the pattern permits 6-14 characters while only the declarable 10-digit code is accepted, and 6/8-digit inputs are refused rather than zero-padded, with subordinate codes returned. It also names the CIF inputs (customs value, freight, insurance) and how origin_country changes the rate, tying parameters to the calculation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Estimate UK import duty and VAT for a commodity code from the LIVE GOV.UK Trade Tariff") and immediately distinguishes itself from siblings by naming hs_code_lookup for code discovery and incoterms_lookup for cost allocation. An agent can tell what this does and what it does not do without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use hs_code_lookup first to find the code, incoterms_lookup for who bears the costs, and it states the estimate is not a customs ruling and should be confirmed with a broker or HMRC. The schema's "Send alone" note on lines[] is reinforced by the batch guidance, so the single-vs-batch choice is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.