Stat Gl

v0.2.1
io.github.pipeworx-io/stat-gl Checked 2 days ago Published 27 days ago

Statistics Greenland (Grønlands Statistik) PxWeb MCP.

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

subjects

Browse the Statistics Greenland (Grønlands Statistik) PxWeb subject tree under the /Greenland database. Empty path returns root folders (type 'l') and tables (type 't'); supply a sub-path like 'BE/BE01' to drill deeper. Table IDs carry a '.px' or '.PX' suffix — pass verbatim to table_meta or query_table.

ParameterTypeDescription
pathstringSub-path under /Greenland/ (default empty = root). e.g. "BE/BE01"

table_meta

Fetch dimension definitions and valid coded values for a Statistics Greenland PxWeb table. Path must be the full sub-path ending in '.px'/'.PX' (e.g. 'BE/BE01/BEXSAT1.PX'). Returns dimensions with codes and value lists — use these to build the selection body for query_table.

ParameterTypeDescription
path *stringe.g. "BE/BE01/BEXSAT1.PX"

query_table

POST a PxWeb query to a Statistics Greenland table and return observations as json-stat2. body must be {query:[{code, selection:{filter,values}}], response:{format:'json-stat2'}}. An empty query ({query:[]}) requests the full table but may be rejected for large tables — narrow selections using codes from table_meta.

ParameterTypeDescription
body *object{query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}}
path *stringe.g. "BE/BE01/BEXSAT1.PX"