Ilostat

v0.2.1
io.github.pipeworx-io/ilostat Checked 1 day ago Published 1 month ago

ILOSTAT (International Labour Organization statistics) MCP — global labour market data via the…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_dataflows

Browse or keyword-search ILOSTAT datasets (dataflows) from the International Labour Organization. Each result has an `id` (the dataflowId you pass to get_data / dataflow_structure) and an English name. ILO publishes ~1,200 datasets covering employment, unemployment, labour force participation, wages, hours worked, informality, working poverty, child labour, and occupational safety. Always pass `query` to filter unless you really want the whole list. Example: list_dataflows({ query: "unemployment rate" }) or list_dataflows({ query: "minimum wage" }).

ParameterTypeDescription
limitnumberMax results to return (default 50).
querystringCase-insensitive substring filter on dataset id or name, e.g. "unemployment", "wages", "labour force".

dataflow_structure

Get the structure (Data Structure Definition) of one ILOSTAT dataset: its ordered dimensions and, for each, the valid codes. Use this to learn how to build the dot-separated SDMX key for get_data. The key positions correspond to the dimensions in order; an empty position is a wildcard. Common dimensions are REF_AREA (ISO3 country code, e.g. "USA", "FRA"), FREQ (A=annual, Q=quarterly, M=monthly), SEX, AGE, and MEASURE. Always call this before get_data. Example: dataflow_structure({ dataflow_id: "DF_SDG_0852_SEX_AGE_RT" }).

ParameterTypeDescription
dataflow_id *stringILOSTAT dataflow id from list_dataflows, e.g. "DF_SDG_0852_SEX_AGE_RT".

get_data

Pull observations from an ILOSTAT dataset. `key` is a dot-separated SDMX dimension filter, one position per dimension in the order given by dataflow_structure; leave a position empty to wildcard it. ILO keys typically start with REF_AREA then FREQ; e.g. get_data({ dataflow_id: "DF_SDG_0852_SEX_AGE_RT", key: "USA.A...", start_period: "2015", end_period: "2024" }) selects the USA, annual frequency, and wildcards the remaining dimensions. Omit `key` (or pass "") to fetch all series — caution, this can be large. Returns decoded series with their dimension labels and per-period values.

ParameterTypeDescription
dataflow_id *stringILOSTAT dataflow id, e.g. "DF_SDG_0852_SEX_AGE_RT".
end_periodstringEnd period, e.g. "2024".
keystringDot-separated dimension filter (one position per dimension, empty = wildcard), e.g. "USA.A..." . Omit for all series.
last_nnumberReturn only the last N observations per series.
max_seriesnumberCap the number of decoded series returned (default 200).
start_periodstringStart period, e.g. "2015", "2015-01", "2015-Q1".