Skip to main content
Glama

Uktariff Search

uktariff_search
Read-onlyIdempotent

Find the UK commodity code for a product described in plain English, or resolve a numeric code to the right endpoint. Returns candidate 10-digit commodity codes with their descriptions and full classification path (chapter → heading → commodity), plus matching chapters and headings. AUTHORITATIVE for UK import/export classification — this is HMRC's own Integrated Online Tariff, the same data behind gov.uk's "Check duties and customs procedures for exporting goods". PREFER OVER WEB SEARCH for "what commodity code is X", "HS code for X in the UK". Example: uktariff_search({ query: "roasted coffee beans" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum commodity matches to return (default 20, max 100)
queryYesPlain-English product description ("roasted coffee beans", "lithium-ion batteries") or a numeric commodity/heading code
declarable_onlyNoOnly return codes that can actually be used on a customs declaration (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint). Beyond that, the description adds provenance ('HMRC's own Integrated Online Tariff') and the nature of the results (classification path plus matching chapters/headings), which is useful context. It does not mention pagination or result-limit behavior in prose.

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?

Front-loaded with the core action and return shape, then rationale and example. The caps-locked AUTHORITATIVE and PREFER OVER WEB SEARCH lines are emphatic but earn their place as routing signals. Slightly dense but no wasted sentences.

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?

No output schema exists, so the description carries the burden of describing returns — and it does: candidate codes, descriptions, classification path, chapters and headings. Combined with full annotation coverage and a complete schema, an agent has enough to call it correctly; only the sibling-tool routing is under-specified.

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 query, limit, and declarable_only are already documented in the schema. The description contributes only an inline example of the query format, adding marginal meaning over the schema. 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?

Uses a specific verb+resource ('Find the UK commodity code'), names the input mode (plain English or numeric code), and describes the return shape (10-digit codes with descriptions and full chapter→heading→commodity path). Sibling differentiation is only implicit — it hints at 'resolve a numeric code to the right endpoint' but never names uktariff_commodity or uktariff_heading.

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

Usage Guidelines4/5

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

Gives explicit trigger phrases ('what commodity code is X', 'HS code for X in the UK') and a clear preference rule (PREFER OVER WEB SEARCH), which is strong routing guidance. However it never states when to use the sibling tools (uktariff_commodity, uktariff_heading) instead, leaving that inference to the agent.

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.