track-tariff-trends
What it does
This skill shows how a country's average tariff rate has changed over the years. It can focus on one trading partner or one product group, and it is for people studying trade policy.
When to use it
- βWhen a user asks how a country's tariffs have changed over time.
- βWhen a user wants to know what a country charges another country on average.
- βWhen a user asks for average tariffs on a product group such as textiles or machinery.
Skill link
https://github.com/koala73/worldmonitor/blob/main/public/.well-known/agent-skills/track-tariff-trends/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow have a country's average tariffs on machinery changed over the past decade?β
5 new skills a week. 1 minute to read.
How it works
The skill picks one of two data series based on the request. It uses the WTO average for all products, or World Bank trade data when a partner or product group is chosen, and it notes that both are schedule rates.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
track-tariff-trends
Use this skill when the user asks about a country's average tariff: how its MFN applied rate evolved, what it charges on average on goods from a given partner or in a product group such as textiles or machinery, or the optional US effective-rate snapshot (FRED customs duties / goods imports).
Two series, chosen by the parameters:
- No partner and no product group: the WTO MFN applied average over all products (
TP_A_0010), seeded, usually up to the latest year WTO publishes. - A partner and/or a product group: the effectively applied average (preferences included) from World Bank WITS (UNCTAD TRAINS), simple and import-weighted. Data ends in 2023 for most reporters; for the US, preferences are only reported through 2021.
Both are schedule rates. Neither includes Section 301, Section 232 or other unilateral duties; for what the US charges today on a product, use lookup-us-import-duty.
Entitlement: this operation is Pro-gated (entitlement tier β₯ 1). A key on the free tier receives empty data (upstreamUnavailable: true) from the browser path, or 403 when the gateway enforces the premium RPC.
Authentication
Server-to-server callers (agents, scripts, SDKs) MUST present an API key in the X-WorldMonitor-Key header. Authorization: Bearer β¦ is for MCP/OAuth or Clerk JWTs β not raw API keys.
X-WorldMonitor-Key: wm_0123456789abcdef0123456789abcdef01234567
Issue a key at https://www.worldmonitor.app/pro.
Endpoint
GET https://api.worldmonitor.app/api/trade/v1/get-tariff-trends
Parameters
| Name | In | Required | Shape | Notes |
|---|---|---|---|---|
reporting_country |
query | no | 3-digit UN M49 (840 = US) |
Empty defaults to 840. Malformed β HTTP 400. The EU is 918. WTO codes 251, 579, 699, 757 (France, Norway, India, Switzerland) also work. |
partner_country |
query | no | 3-digit UN M49 | The exporting partner. Empty or 000 (World) with no product group selects the MFN series; any other partner selects the WITS series. The EU is not a partner; name a member state. |
product_sector |
query | no | empty / all / WITS group |
Empty or all = all products. A WITS group selects the WITS series: an HS section (01-05_Animal, 06-15_Vegetable, 16-24_FoodProd, 25-26_Minerals, 27-27_Fuels, 28-38_Chemicals, 39-40_PlastiRub, 41-43_HidesSkin, 44-49_Wood, 50-63_TextCloth, 64-67_Footwear, 68-71_StoneGlas, 72-83_Metals, 84-85_MachElec, 86-89_Transport, 90-99_Miscellan) or AgrRaw, Chemical, Food, Fuels, manuf, OresMtls, Textiles, Transp. Case-insensitive. Anything else β NOT_COVERED. |
years |
query | no | integer 0β30 | Lookback window inclusive of both endpoints (10 β 11 calendar years). 0 β default 10. The seed holds 30 years; every window is sliced from the same key. |
jmespath |
query | no | JMESPath, β€ 1024 chars | Server-side projection. |
Response shape
{
"datapoints": [
{
"reportingCountry": "United States of America",
"partnerCountry": "World",
"productSector": "All products",
"year": 2024,
"tariffRate": 3.4,
"boundRate": 0,
"indicatorCode": "TP_A_0010"
}
],
"effectiveTariffRate": { "sourceName": "β¦", "tariffRate": 2.5 },
"fetchedAt": "2026-08-09T12:00:00Z",
"upstreamUnavailable": false,
"unavailableReason": "TARIFF_TREND_UNAVAILABLE_REASON_UNSPECIFIED",
"coverageStartYear": 2014,
"coverageEndYear": 2024
}
tariffRate is the simple average: MFN applied on TP_A_0010, effectively applied on AHS-SMPL-AVRG (the WITS series; check indicatorCode). weightedRate is the import-weighted average on the WITS series, 0 on TP_A_0010 and 0 where there were no imports in that group from that partner. partnerCountry echoes the requested partner code (World when none), and productSector names the group. boundRate is reserved (always 0). effectiveTariffRate is US-wide and only accompanies the MFN series.
A WITS answer, US imports from China, all products:
{ "reportingCountry": "840", "partnerCountry": "156", "productSector": "All products", "year": 2023,
"tariffRate": 3.584, "weightedRate": 2.77, "boundRate": 0, "indicatorCode": "AHS-SMPL-AVRG" }
unavailableReason is the closed TariffTrendUnavailableReason enum β NOT_COVERED leaves upstreamUnavailable: false (a permanent coverage answer, also used when WITS has no data for a pair, Taiwan included)
FAQ
Does this show the tariffs the US charges today?
No. The skill says these rates exclude Section 301, Section 232 and other unilateral duties, and it points to a separate lookup for current US import duties.
How recent is the data?
Data for most reporters ends in 2023, and for the US, preference data goes only through 2021.
Is this free to use?
No. The skill says this operation needs a Pro-level WorldMonitor key.
Details
Original description by the author
Retrieve a country's average applied tariff over time β the MFN rate on all products, or the rate it applies on goods from one partner and/or in one product group β plus the optional US effective tariff rate. Use when the user asks how a country's tariffs have changed, or what it charges another country on average. For one product between two countries, use lookup-bilateral-tariff.
repo: koala73/worldmonitor
Popularity
- GitHub stars
- 90k
- Ranking position
- #1361
- License
- AGPL-3.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
chokepoint-check
90kReports current shipping disruption at major maritime chokepoints such as Hormuz, Suez and Malacca, including transit counts and risk levels.
conflict-pulse
90kSummarizes recent armed conflict and unrest events by location, with fatality estimates, dates and matching news reports.
country-briefing
90kBuilds a risk briefing for one country, covering its instability score, travel advisory, sanctions exposure and economic indicators.
hazard-watch
90kLists recent earthquakes, wildfires and other natural hazards worldwide or near a place, with their location, time and severity.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.