UN Comtrade — Bilateral Trade Flows
globalpulse_trade_get_bilateral_flowsRetrieve bilateral trade flows (imports and exports) between country pairs using UN Comtrade data, filtered by year, commodity code, and flow direction.
Instructions
Bilateral trade data from UN Comtrade. Imports, exports by country pair and HS commodity code. Common HS codes: TOTAL (all), "27" (oil/fuel), "84" (machinery), "85" (electronics), "87" (vehicles), "30" (pharma), "10" (cereals). Args: reporter, partner (default "world"), year (2000-2023), flow ("all","X","M"), commodity_code, limit, response_format
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reporter": "<reporter>"
},
"name": "globalpulse_trade_get_bilateral_flows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | all | |
| year | No | ||
| limit | No | ||
| partner | No | world | |
| reporter | Yes | ||
| commodity_code | No | TOTAL | |
| response_format | No | markdown |