comtrade_list_classifications
List UN Comtrade reference files and product classifications by category, optionally filtering to one category such as cmd:H6.
Instructions
List UN Comtrade's reference files, the product classifications among them, by category.
Answered from upstream's index of the files, ListofReferences.json, as packaged
with this version (reference/ListofReferences.json), without an upstream call;
meta.retrieved_at is when the package fetched it, meta.vintage is None.
28 rows when packaged, one per file: its category ("flow", "reporter",
"cmd:HS"), the variable it lists ("Product [HS 2022]"), upstream's
description and where the file is served, fileuri. A category
cmd:<clCode> is a product classification, 19 of them: the cl_code that
get_data and list_commodities take ("cmd:H6" is "H6", HS 2022).
Args:
category: Keep the row of this category, as upstream writes it, e.g.
"cmd:HS", "cmd:H6", "cmd:EB10", "flow", "reporter",
"qtyunit". 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_classifications"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No |