How to Add US Trade Data to OpenClaw for Competitive Intelligence
Competitive intelligence for companies that deal in physical goods requires more than web scraping and news monitoring. You need to know actual trade volumes — who is importing what, from where, and how those flows are changing. AgentPatch’s Trade Data tool gives OpenClaw direct access to the Census Bureau’s International Trade data so it can answer those questions as part of a broader research workflow.
Why This Matters
Public trade data is one of the few reliable signals for understanding a competitor’s supply chain. If a company imports automotive parts from Germany, you can see the HS6-level commodity codes flowing into the US from that country and track changes over time. If a new competitor is sourcing from Vietnam instead of China, that shows up in the data months before it shows up in the news.
The problem is access. The Census Bureau’s data portal is designed for manual exploration, not for AI agents building research reports. The Trade Data tool wraps that API into a structured call: specify imports or exports, pick a commodity granularity (HS2, HS4, or HS6), set a time period, and optionally filter by country or commodity code. Results come back sorted by value with descriptions, country names, and both monthly and YTD figures. Each call costs 75 credits.
Setup
Add AgentPatch to ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"agentpatch": {
"transport": "streamable-http",
"url": "https://agentpatch.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
}
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.
Example
You’re tracking competitive dynamics in the US steel market and want OpenClaw to build a sourcing landscape report. You ask:
“Analyze the US steel import market for Q4 2025. Pull HS4-level data for October, November, and December 2025 filtered to commodity code 7208 (flat-rolled iron/steel). Identify which countries gained or lost share over the quarter.”
OpenClaw calls the Trade Data tool three times and synthesizes the results:
Fetching HS4 import data for 7208 (flat-rolled iron/steel)...
October 2025, November 2025, December 2025
Country share shifts (Oct -> Dec):
Canada (2010): 28% -> 31% (+3pp) Gained share
Mexico (2900): 18% -> 20% (+2pp) Gained share
South Korea: 14% -> 13% (-1pp) Stable
Japan (5880): 11% -> 9% (-2pp) Lost share
Germany (4759): 7% -> 6% (-1pp) Lost share
Total flat-rolled steel imports averaged $1.9B/month in Q4 2025.
North American sources (Canada + Mexico) increased combined share
from 46% to 51%, likely reflecting tariff-driven supply chain shifts.
OpenClaw used three sequential tool calls to build a trend analysis that would have taken significant manual effort — downloading data for each month, aligning commodity codes, and computing share changes.
Wrapping Up
Connecting AgentPatch to OpenClaw gives it live access to US trade flow data for any competitive intelligence or market research workflow. Combine it with Google News to correlate trade shifts with policy announcements, or with FRED data to add macro context. The same connection unlocks every other tool on the marketplace. See what’s available at agentpatch.ai.