Skip to main content
Glama

un-comtrade-mcp-server

Check Data Availability

comtrade_get_data_availability
Read-only

Check which reporter/period/classification combinations have published data before constructing expensive trade queries. Returns dataset records with period, classification, record count, and first/latest release dates. Call this before querying recent periods — annual data is typically published 3–12 months after the reference year and not all countries report every year. Omit all parameters to browse the full availability index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
freqNoFrequency: A=annual, M=monthly.A
periodNoPeriod to check: YYYY (annual) or YYYYMM (monthly). Omit to see all available periods for the reporter.
type_codeNoTrade type: C=commodities (goods), S=services.C
reporter_codeNoM49 reporter code to check. Omit to browse availability across all reporters.
classificationNoClassification code filter (e.g. "HS", "H6", "EB10"). Omitted or blank defaults to HS for goods and EB10 for services.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoRecovery hint when no availability records are found.
datasetsNoAvailable datasets matching the query.
totalDatasetsNoTotal number of available dataset records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.