Get Top Services Trading Partners
comtrade_get_top_services_partnersRank partners of one reporter by trade value for a single annual EBOPS series. Omit service_code for total services, or use comtrade_list_service_categories to find one category. EB serves original reports, while EB10 and EB02 serve converted series. Shares divide by the sum of eligible retrieved partners before the display limit. Read coverageNotice before interpreting the ranking.
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_code": "<reporter_code>",
"flow_code": "<flow_code>",
"period": "<period>"
},
"name": "comtrade_get_top_services_partners"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of partners to display. Counts and sums precede the display limit. | |
| period | Yes | One annual period, YYYY. | |
| flow_code | Yes | Trade flow: M=imports, X=exports. | |
| service_code | No | One EBOPS service code. Omit or pass blank for total services. | |
| reporter_code | Yes | M49 numeric code of the reporting area (0–999). | |
| classification | No | EB for as-reported data (default), or EB10 or EB02 for UN Comtrade’s converted series. | EB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Next steps when no services series is selected. | |
| period | No | Annual period queried. | |
| flowCode | No | Trade flow queried. | |
| partners | No | Retrieved partners, ordered by descending value when available. | |
| truncated | No | True when the upstream retrieval was capped or incomplete. | |
| serviceCode | No | Selected service category or scheme total code. | |
| reporterCode | No | M49 code of the reporting area. | |
| reporterDesc | No | Reporting area name. | |
| totalPartners | No | Eligible retrieved partners before the display limit. | |
| totalValueUsd | No | Sum of eligible retrieved partner values before the limit, when all are known. | |
| classification | No | Services classification requested. | |
| coverageNotice | No | Scope of the retrieved data and conditions that prevent ranking. | |
| referenceNotice | No | Reference descriptions unavailable. | |
| classificationCode | No | Actual scheme of the selected series. | |
| isOriginalClassification | No | True for an original series, false for a UN Comtrade conversion, when established. |