query_trade
Query Eurostat COMEXT for EU trade data: overview, countries, timelines, top partners/products, balance, wood products, heatmaps. Filter by HS2 code, import/export, year, partner, and EU country.
Instructions
Query EU trade data (Eurostat COMEXT DS-045409). 28M+ records, 27 EU countries, HS2-CN8 product codes. Supports: overview, countries, timeline, top_partners, top_products, balance, wood_products, heatmap, product_detail.
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": {
"query_type": "<query_type>"
},
"name": "query_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hs2 | No | HS2 product code (e.g., "44" for wood) | |
| flow | No | Trade flow | |
| year | No | Year filter (e.g., 2025) | |
| limit | No | Max results (default: 20) | |
| years | No | Year range (e.g., "2021-2025") | |
| partner | No | Partner country code | |
| reporter | No | 2-letter EU country code, comma-separated for multiple (e.g., "LV" or "LV,DE,FR") | |
| query_type | Yes | Query type |