Skip to main content
Glama

Get UK Trade Tariff heading

get_uk_tariff_heading
Read-onlyIdempotent

Retrieve a UK HMRC 4-digit tariff heading with its description, validity dates, and declarable child commodity codes for customs classification and import checks.

Instructions

Fetch a 4-digit UK HMRC Trade Tariff heading, its plain-text description, validity dates, and declarable child 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": {
      "heading_code": "<heading_code>"
    },
    "name": "get_uk_tariff_heading"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum child commodities to return (default 20, max 50).
heading_codeYes4-digit HS heading code (e.g. "8542" for electronic integrated circuits).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

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, non-destructive, open-world behavior, so the description's added value is the return payload, which it discloses concretely (description text, validity dates, child commodity codes). It stops short of explaining truncation of child codes when the limit is hit or what happens for an invalid heading.

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 front-loaded sentence with the verb and resource first and the return contents listed after; every clause carries information and there is no filler.

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 no output schema, the description correctly takes on the burden of describing return fields, and it does so for a simple two-parameter read tool. Minor gaps remain around error/empty results and whether the child list is truncated, but nothing essential to calling it correctly is missing.

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 coverage is 100%, so both heading_code and limit are already documented with examples, default, and bounds. The description only echoes the 4-digit format and hints that child codes are limited; it adds little beyond the schema, so the baseline of 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 (Fetch) and resource (4-digit UK HMRC Trade Tariff heading) and enumerates what comes back: plain-text description, validity dates, and child commodity codes. It does not explicitly distinguish itself from the sibling search_uk_trade_tariff, but the exact-code lookup nature is clear from '4-digit ... heading'.

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?

Usage is only implied: an agent can infer this is the exact-code lookup versus the sibling search tool, but the description never names an alternative or states when not to use it. No prerequisites or fallback behavior for unknown codes are given.

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