Cso Ie

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

Ireland Central Statistics Office (CSO) PxStat MCP.

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

list_datasets

Search the CSO catalog of ~12,600 Irish statistics tables. Returns matching tables with their matrix code (e.g. "CPM01"), label, dimensions, and last-updated date. The full catalog is large, so always pass a keyword query to narrow it.

ParameterTypeDescription
limitnumberMax results to return (default 50, max 200).
querystringKeyword(s) matched against table label and matrix code, e.g. "consumer price", "population", "QLF". Case-insensitive.

dataset_metadata

Get the structure of one CSO table by matrix code: its dimensions, the category codes + human labels for each dimension, size, and last-updated date. Use this to discover valid dimension codes before calling get_dataset with filters.

ParameterTypeDescription
matrix *stringMatrix code, e.g. "CPM01" (Consumer Price Index) or "QLF18" (labour force).

get_dataset

Read a full CSO table as JSON-stat 2.0 (dimensions + flat value array). Some tables are large (the CPI table is ~60k values); use dataset_metadata first to gauge size, or use query_dataset to fetch a filtered slice instead.

ParameterTypeDescription
matrix *stringMatrix code, e.g. "CPM01".

query_dataset

Read a FILTERED slice of a CSO table via JSON-RPC. Pass a map of dimension code -> array of category index values to keep (get the dimension codes and category index values from dataset_metadata). Returns JSON-stat 2.0 covering only the selected cells — far smaller than get_dataset.

ParameterTypeDescription
filters *objectMap of dimension code to an array of category index values to keep, e.g. {"STATISTIC":["CPM01C08"],"TLIST(M1)":["202512"]}. Dimensions you omit are returned in full. Time dimensions like TLIST(M1) use…
matrix *stringMatrix code, e.g. "CPM01".