Check Data Availability
comtrade_get_data_availabilityCheck which reporter/period/classification combinations have published data before querying trade. Returns datasets ordered by reporter code, newest period first within each reporter, with classification, record count and release dates where available. Annual data is typically published 3–12 months after the reference year and some reporters skip years. Omit filters to browse the index, 50 rows by default. Continue with nextOffset using the same filters and limit.
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_get_data_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| freq | No | Frequency: A=annual YYYY, M=monthly YYYYMM (01–12). Omit to infer it from period, or annual when period is omitted too; an explicit value must match period. | |
| limit | No | Maximum datasets returned per page; defaults to 50. | |
| offset | No | Number of matching datasets to skip; use nextOffset to continue. | |
| period | No | Period to check: YYYY (annual) or YYYYMM (monthly). Omit to see all available periods for the reporter. | |
| type_code | No | Trade type: C=commodities (goods), S=services. | C |
| reporter_code | No | M49 reporter code to check. Omit to browse availability across all reporters. | |
| classification | No | Classification code filter (e.g. "HS", "H6", "EB10"). Omitted or blank defaults to HS for goods and EB10 for services. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of datasets returned on this page. | |
| notice | No | Recovery hint when no records match or the offset is past the end. | |
| offset | No | Number of matching datasets skipped for this page. | |
| datasets | No | Available datasets matching the query. | |
| truncated | No | Whether this page contains only part of the matching dataset list. | |
| nextOffset | No | Offset for the next page; absent when no rows remain. | |
| totalDatasets | No | Total number of available dataset records. |