Skip to main content
Glama

WITS Tariff Statistics

wits-trade.tariff.get_stats
Read-onlyIdempotent

Get import tariff statistics from the World Bank WITS (UNCTAD TRAINS data): MFN and applied simple/weighted average tariffs, maximum rates and duty-free shares for a reporter country, partner, product/sector and one or more years. Data: wits.worldbank.org, no auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYesYear or comma-separated years, max 10 (e.g. "2020" or "2018,2019,2020").
partnerNoPartner country/region ISO3 code (default "wld" = World). E.g. "chn", "mex".
productNoProduct/sector code (default "Total"), sector name, or HS code.
reporterYesReporting country ISO3 code (e.g. "usa", "chn", "deu").
indicatorNoTariff indicator code (default "MFN-WGHTD-AVRG" = MFN weighted average tariff %). Others: "MFN-SMPL-AVRG", "AHS-WGHTD-AVRG" (applied weighted avg), "MFN-MXMM-RT", "MFN-DTY-FR-TRFF-LNS-SHR".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is covered. The description adds real context beyond that: the upstream source (wits.worldbank.org) and the fact that no authentication is required, which is genuinely useful for an agent planning a call.

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?

Two dense sentences with the resource and indicator scope front-loaded and the provenance/auth caveat last. No filler; every clause carries information.

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 an output schema present, return values need no explanation, and the description covers source, indicator scope, dimensional filters, and auth requirements. Only the missing routing guidance against the sibling keeps it short of fully complete.

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 all five parameters including defaults and indicator codes are already documented in the schema; that sets the baseline at 3. The description reframes the dimensions (reporter, partner, product/sector, one or more years) and explains what the indicator families mean, but adds no syntax, code, or default detail beyond 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?

Specific verb (Get) plus a precisely scoped resource (import tariff statistics from World Bank WITS/UNCTAD TRAINS), with the exact indicator families enumerated (MFN and applied simple/weighted averages, max rates, duty-free shares). An agent can distinguish this from the near-name sibling wits-trade.trade.get_stats on subject matter alone.

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?

The description implies usage through its scope (reporter/partner/product/year dimensions), and the no-auth note helps, but it never states when to pick this over the sibling wits-trade.trade.get_stats or any exclusion conditions. Adequate but leaves routing to inference.

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.