get_data

Pack: dst-dk · Endpoint: https://gateway.pipeworx.io/dst-dk/mcp

Pull data from a table. Provide tableId and a “variables” map of {variableCode: valueOrValues}, using codes/ids from table_info. Each value may be a single id, an array of ids, or ”*” for all. Omitted variables that allow elimination are aggregated to total. format “JSONSTAT” (default, structured JSON-stat) or “BULK”/“CSV” (semicolon-delimited text).

Parameters

NameTypeRequiredDescription
tableIdstringyesTable id, e.g. “FOLK1C”.
variablesobjectyesMap of variable code -> value(s). Value is a string, an array of strings, or ”*”. Example: {“OMRÅDE”:“000”,“Tid”:[“2024K1”,“2024K2”],“ALDER”:“IALT”}.
Exampleunknownno
formatstringno”JSONSTAT” (default), “BULK” or “CSV” (both return semicolon CSV).
langstringnoLanguage: “en” (default) or “da”.

Example call

Arguments

{
  "tableId": "FOLK1C",
  "variables": {
    "OMRÅDE": "000",
    "Tid": "2024K1",
    "ALDER": "IALT"
  }
}

curl

curl -X POST https://gateway.pipeworx.io/dst-dk/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_data","arguments":{"tableId":"FOLK1C","variables":{"OMRÅDE":"000","Tid":"2024K1","ALDER":"IALT"}}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_data', {
  "tableId": "FOLK1C",
  "variables": {
    "OMRÅDE": "000",
    "Tid": "2024K1",
    "ALDER": "IALT"
  }
});

More examples

{
  "tableId": "FOLK1C",
  "variables": {
    "OMRÅDE": [
      "000",
      "101"
    ],
    "Tid": [
      "2024K1",
      "2024K2"
    ],
    "ALDER": "*"
  },
  "format": "CSV"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "dst-dk": {
      "url": "https://gateway.pipeworx.io/dst-dk/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 28, 2026