Skip to main content
Glama

Search UK Trade Tariff

search_uk_trade_tariff
Read-onlyIdempotent

Search UK HMRC Trade Tariff by product keyword or HS code prefix to find matching headings and commodity codes for customs classification.

Instructions

Search the UK HMRC Trade Tariff by product keyword or HS code prefix to find matching headings and commodity codes.

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": {
      "query": "<query>"
    },
    "name": "search_uk_trade_tariff"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum headings and commodities to return (default 10).
queryYesSearch keyword or HS prefix (e.g. "semiconductor", "coffee", "8542").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorld, so the safety profile is fully covered by structured data and the description correctly avoids contradicting it. The description adds the meaningful behavioral detail that matching is by keyword or HS prefix and that results are headings/commodities, but it does not disclose truncation behavior, ranking, or whether an empty result is likely for short prefixes.

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?

A single sentence that front-loads the action, the data source, and both accepted query forms with no filler or redundancy. Every element earns its place.

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?

For a two-parameter read-only search with full schema coverage and no output schema, the description covers purpose and query semantics adequately. Minor gap: no hint about result shape or result ordering, which an agent would need to decide between this search and the sibling heading/commodity lookups.

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 the baseline is 3, but the description adds the domain-framing that the query may be either a product keyword or an HS code prefix, which is the key semantic nuance for this tool. The limit parameter's meaning (maximum headings and commodities) is already fully documented in the schema, so no extra credit there.

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: searching the UK HMRC Trade Tariff by keyword or HS code prefix, with the expected return being matching headings and commodity codes. This is clear enough to distinguish it from get_uk_tariff_heading or get_uk_commodity_duties, which are lookup-style siblings rather than search tools, but it does not name or explicitly contrast with them.

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 a discovery use case (you have a keyword or partial code and need to find the right heading/commodity), but never states when to prefer this over the sibling lookup tools or what to do after obtaining results. Usage guidance is inferable rather than explicit.

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