Get Top Goods Reporters
comtrade_get_top_reportersRank retrieved reporting areas by reported import or export value for one goods code and period. Partner 0 (World) ranks reporters by their trade with all partners. Use a bilateral partner to rank reporters by their trade with that area. Shares use the retrieved reporting areas before the display limit. Use comtrade_get_top_partners to rank the partners of one reporter.
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": {
"flow_code": "<flow_code>",
"period": "<period>"
},
"name": "comtrade_get_top_reporters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum reporting areas displayed. Totals cover all eligible retrieved reporting areas. | |
| period | Yes | One annual YYYY or monthly YYYYMM period. Frequency is inferred. | |
| cmd_code | No | One commodity code in the selected HS or SITC classification. Omit or pass TOTAL for total merchandise trade. | |
| flow_code | Yes | Trade flow: M=imports, X=exports. | |
| partner_code | No | M49 partner code (0–999). Defaults to World (0). | |
| classification | No | Goods classification: HS as reported, H0–H6 with authenticated access, or SITC S1–S4/SS. | HS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| period | No | Period queried. | |
| cmdCode | No | Commodity code queried (TOTAL when omitted). | |
| flowCode | No | Flow direction queried. | |
| reporters | No | Retrieved reporting areas sorted by descending known value, then code, with unresolved values last. | |
| truncated | No | True when the upstream retrieval may be incomplete due to a detected limit or failed slice. Independent of the display limit. | |
| partnerCode | No | Partner code queried (0 = World). | |
| totalValueUsd | No | Sum in USD across eligible retrieved reporting areas before the display limit, whether or not retrieval was capped. Omitted for an empty set or any unresolved value. | |
| classification | No | Goods classification queried. | |
| coverageNotice | No | Scope of the retrieved data and any conditions that prevent ranking. | |
| totalReporters | No | Eligible retrieved reporting areas before the display limit. | |
| referenceNotice | No | Reference descriptions unavailable; trade values retained. |