get_data
Pack: datacube-sk · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_data for the schema, then POST the same URL with its arguments for the data.
Pull data for a cube as JSON-stat. Provide one selection per dimension,
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cube | string | yes | Cube code, e.g. “as1001rs” (from list_datasets). |
selections | array | yes | One entry per dimension, in dataset_dimensions order. Each is a value code, a comma-separated list of codes, or “all”. Example for as1001rs: [“2024”, “UKAZ01”, “all”]. |
items | string | no | |
lang | string | no | Label language (default “en”). |
Example call
Arguments
{
"cube": "as1001rs",
"selections": [
"2024",
"UKAZ01",
"all"
]
}
curl
curl -X POST https://gateway.pipeworx.io/datacube-sk/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_data","arguments":{"cube":"as1001rs","selections":["2024","UKAZ01","all"]}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_data', {
"cube": "as1001rs",
"selections": [
"2024",
"UKAZ01",
"all"
]
});
More examples
{
"cube": "as1001rs",
"selections": [
"2023,2024",
"UKAZ01,UKAZ02",
"SEX_M"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the datacube-sk pack
{
"mcpServers": {
"datacube-sk": {
"url": "https://gateway.pipeworx.io/datacube-sk/mcp"
}
}
}
See Getting Started for client-specific install steps.