comtrade_list_reporters
List UN Comtrade reporters and their reporter codes, with optional text search to find the right code for trade data queries.
Instructions
List the reporters UN Comtrade has trade data from, with the codes reporter_code takes.
Answered from upstream's Reporters.json as packaged with this version
(reference/Reporters.json), without an upstream call; meta.retrieved_at is
when the package fetched it, meta.vintage is None. 255 rows when packaged,
one per reporter code, current and historical (entry_expired_date is set on codes
no longer used, such as 280 Fed. Rep. of Germany until 1990 or 810 USSR).
Codes are UN Comtrade's, not always ISO numeric: 757 Switzerland (not 756),
842 USA, 276 Germany, 156 China; 97 European Union and 975 ASEAN
are groups (is_group). search finds a code without reading the whole list.
Args:
search: Keep the rows where this text occurs, ignoring case, in the code
(reporter_code), the ISO alpha-3 code or the names (text,
reporter_desc, reporter_note), e.g. "switz", "757", "CHE"
(757 Switzerland, and 690 Seychelles by its name), "germany" (276 Germany,
278 and 280 until 1990). 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_reporters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No |