Skip to main content
Glama

get_tariff

Get tariff rate for an HS code

Input Schema

NameRequiredDescriptionDefault
hs_codeYesHS code (e.g. 8471 or 847130)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing beyond purpose. It omits the jurisdiction/country context (tariff rates are country-specific but only an HS code is accepted), the return shape, and any auth or rate-limit notes — and there is no output schema to fill that gap.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity shades into under-specification rather than genuine economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description is too thin: it does not say what the returned rate looks like (percentage, currency, per-unit, trade agreement variants) or which jurisdiction's tariff applies given that only an HS code is supplied. Both are material gaps for correct invocation.

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% and the single hs_code parameter is documented with an example format (8471 or 847130), so the schema does the heavy lifting. The description adds no format, precision, or jurisdiction semantics beyond it — the baseline 3.

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 ("Get tariff rate") plus the scoping input ("for an HS code"). It is clearly distinguishable in substance from get_currency_rate and get_vat_rate, though it never names or contrasts them explicitly.

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 infers it should call this when it needs a tariff rate for a given HS code. There is no statement of when not to use it, no prerequisites, and no routing against the closely related get_vat_rate sibling.

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.