Skip to main content
Glama

US tariff rulebook + receipts, per HS code

tariff_lookup
Read-only

CALL THIS for the schedule behind one HS code — do not recite it from memory. Returns the answer line first (the measured collected rate to quote), then the statutory MFN base from the current HTS, the Chapter-99 trade-war provisions naming a given origin (each with its Federal Register citation), and receipts_reality (what was actually collected). Trimtab DOES hold the tariff schedule and the rulebook — this is it. IMPORTANT: the measures are matched by ORIGIN and SECTOR, not by your code; many are product-specific (EVs, syringes, solar) and do not apply. Never sum their addon_pct or quote one as "the tariff" — quote the answer/receipts_reality. For "what does X from Y pay" prefer tariff_story. Not customs advice. Example: tariff on 9401.61 from China. No API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hsYesHS code, 2 to 10 digits (dots optional), e.g. 9401.61 or 847130
originNoOrigin country name (e.g. China, Vietnam) — adds in-force measures and receipts reality (optional)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses the exact output structure (answer line, MFN base, Chapter-99 provisions with citations, receipts_reality), explains that measures are matched by ORIGIN and SECTOR rather than HS code alone, and warns against summing addon_pct or misquoting the tariff. This is substantial behavioral context that prevents misuse.

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?

The description is dense but well-structured, starting with a bold directive, then enumerating return values, then key warnings with 'IMPORTANT:', and ending with an example and disclaimer. Every sentence adds value; it's longer than typical but justified by the tool's complexity and the need to prevent misinterpretation.

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?

With no output schema, the description fully specifies what the tool returns and in what order. It also covers edge cases (product-specific measures, matching logic), provides an alternative tool, and includes a disclaimer. The description is complete for a tool of this complexity and read-only nature.

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?

While schema coverage is 100%, the description adds critical semantics about the origin parameter: it 'adds in-force measures and receipts reality' and clarifies that measures are matched by origin and sector, not the HS code. It also provides a concrete example ('tariff on 9401.61 from China') and warns about product-specific scope, going beyond the raw schema.

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?

The description opens with a direct command 'CALL THIS' and explicitly states the tool's purpose: retrieving the tariff schedule behind one HS code. It clearly distinguishes from siblings by directing users to tariff_story for 'what does X from Y pay' queries, making the tool's specific role unambiguous.

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?

The description provides explicit when-to-use guidance ('CALL THIS for the schedule behind one HS code'), warns against reciting from memory, and explicitly excludes the alternative ('For 'what does X from Y pay' prefer tariff_story'). It also cautions about product-specific measures not applying, giving clear behavioral boundaries.

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.

TDQS

A3.9/5.0
Disambiguation2/5

Several tools overlap significantly in the tariff/trade domain: tariff_story explicitly replaces hs_search, tariff_lookup, and tariff_burden, and trade_query also returns duty data. This creates ambiguity about which tool to invoke for a given tariff question, though non-tariff tools (compare, event_studies, month_in_review) are clearly distinct.

Naming Consistency2/5

Tool names follow mixed conventions: some are verb-first (compare, query_series, tariff_lookup), others are noun-first (commodity_profile, tariff_burden, event_studies), and there's no consistent prefix or verb pattern. While readable, the lack of a unified naming scheme makes the set feel less coherent.

Tool Count4/5

With 13 tools, the set is within a reasonable range for a trade data service and covers most query needs. It's slightly larger than necessary given the overlapping tariff tools, but not excessive.

Completeness4/5

The surface covers tariff lookup, actual duties paid, trade volumes, comparisons, profiles, event studies, and rulings search, which is comprehensive for a read-only trade data resource. Minor gaps exist (e.g., no tool for gateway-specific tariff burden, and the meta-tool ledger_meta hides a set of archived tools), but core workflows are well supported.