comtrade_list_partners
Lists UN Comtrade partner areas and their codes, then searches by name, ISO alpha-3, or numeric code to find the correct partner_code or partner2_code for trade queries.
Instructions
List the partner areas UN Comtrade records trade with, for partner_code and partner2_code.
Answered from upstream's partnerAreas.json as packaged with this version
(reference/partnerAreas.json), without an upstream call; meta.retrieved_at is
when the package fetched it, meta.vintage is None. 310 rows when packaged:
0 World (the total over all partners), countries in the reporters' code space
(757 Switzerland, 842 USA, 276 Germany, 156 China) and areas that only
occur as partners, such as 899 "Areas, nes" or 756 Switzerland under its ISO
code. search finds a code without reading the whole list.
Args:
search: Keep the rows where this text occurs, ignoring case, in the code
(partner_code), the ISO alpha-3 code or the names (text,
partner_desc, partner_note), e.g. "world", "W00", "USA"
(840 United States of America, 841, 842 USA), "nes". Omit for every row.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "comtrade_list_partners"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No |