Skip to main content
Glama

Two origins, commodities or gateways side by side

compare
Read-only

Put two subjects on the same axis over the same months and compute the difference: two origin countries, two commodity chapters (or HS6 codes), or two US gateways, measured on trade weight, value, unit value, tariff burden or duty paid. Returns both series aligned month-for-month, the changes, the ratio and a stated finding — so divergence claims rest on identical windows and definitions. Use for "is trade shifting from China to Vietnam", "do Indian goods pay more than Mexican goods", "is Houston growing faster than Savannah". For two ORIGINS on a specific commodity it ALSO returns landed_cost — the duty-inclusive $/kg for each origin AND the FOB price premium the lower-duty origin can carry at the factory and still match landed customs cost. That headroom % is the exact number to put in front of a buyer ("we can be N% pricier than China and you pay the same landed"); it also reports which origin actually lands cheaper today, so the duty gap is never oversold. Both subjects must be the same kind; to compare more than two, call twice. burden_pct/duty_usd come from nationwide receipts and are not available for kind "gateway". No API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
detailNostandard
monthsNo
originNoOptional filter when kind is commodity/gateway: one origin country.
measureYes
commodityNoOptional filter when kind is origin/gateway: one HS2 chapter or 6-digit code.
subject_aYes
subject_bYes

Schema Changelog

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

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds substantial behavioral context: it returns both series aligned month-for-month, changes, ratio, and a stated finding; reveals special landed_cost calculations for two origins on a specific commodity; explains data sources (nationwide receipts for duties); and states no API key is required. No contradictions with annotations.

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 longer than average but every sentence contributes. It is front-loaded with the core action, then gives examples, then covers an advanced feature (landed_cost) and constraints. The length is justified by the tool's complexity, though it could be slightly tightened (e.g., bullets for the examples).

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 8 parameters, no output schema, and no nested objects, the description must be self-sufficient. It explains return values (series, changes, ratio, finding), the special landed_cost/headroom output, data source caveats (burden_pct/duty_usd not for gateway), and operational guidance (call twice for more than two). This is complete enough for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% (just origin/commodity have descriptions), so the description carries the burden. It clarifies the semantics of 'kind' (origin/commodity/gateway), 'measure' (weight, value, unit value, tariff burden, duty paid), and 'subject_a/subject_b' (two origins, commodities, or gateways). It also explains constraints like same-kind requirement and gateway limitations, which are not in the 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 starts with a specific verb+resource: 'Put two subjects on the same axis...compute the difference' and clearly enumerates the supported subject types (origins, commodity chapters/HS6 codes, US gateways) and measures. It fully distinguishes this tool from siblings like origin_profile or tariff_burden by focusing on side-by-side comparison, and even gives concrete example questions.

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 explicitly states when to use this tool: 'Use for "is trade shifting from China to Vietnam"...' and provides multiple real-world queries. It also gives important constraints: subjects must be the same kind, compare more than two by calling twice, and burden_pct/duty_usd are not available for gateways. This is clear, actionable guidance.

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.