get_drilldown
Which child items drove the change of an HS2, HS4 or HS6 item: for the month you name (default the latest) compared with the same month a year earlier (compare "yoy") or the month before ("mom"), each child gets its value, the earlier value, the change and its contribution to the parent's change (change divided by the parent's change), largest absolute change first. Children are the next level down (HS2 to HS4, HS4 to HS6, HS6 to national codes). If an item has no children, rows is empty with a note; if the parent did not change, contribution is null. Works for every reporter. Use it for finding which products drove a change in a chapter, heading or subheading.
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>",
"flow": "<flow>",
"code": "<code>"
},
"name": "get_drilldown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Required. HS code of 2, 4 or 6 digits; dots are ignored. | |
| flow | Yes | Required. "import" (goods entering the reporting country) or "export" (goods leaving it); there is no combined view: "both" does not exist. For a comparison across countries use compare_countries, for exports minus imports use get_balance. | |
| limit | No | Optional. Children shown (default 20). | |
| month | No | Optional. The month to explain, YYYY-MM. Default: the latest published month. | |
| compare | No | Optional. "yoy" (default) compares with the same month a year earlier; "mom" with the month before. | |
| reporter | Yes | Required. The reporting country whose customs statistics are read: "JP" (Japan), "US" (United States), "GB" (United Kingdom) or "EU" (European Union (27 member states)). Partners are the other countries. |