query_table

Pack: ssb-no · Endpoint: https://gateway.pipeworx.io/ssb-no/mcp

Pull data from a table. id is the numeric SSB table id; body is a PxWeb query object. Omitted dimensions with elimination collapse; otherwise select values per dimension.

Parameters

NameTypeRequiredDescription
idstringyesNumeric table id, e.g. “07459”.
bodyobjectyes{query: [{code, selection: {filter: “item”, values: […]}}], response: {format: “json-stat2”}}
selectionunknownno
responseunknownno

Example call

Arguments

{
  "id": "07459",
  "body": {
    "query": [
      {
        "code": "Region",
        "selection": {
          "filter": "item",
          "values": [
            "0301"
          ]
        }
      }
    ],
    "response": {
      "format": "json-stat2"
    }
  }
}

curl

curl -X POST https://gateway.pipeworx.io/ssb-no/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_table","arguments":{"id":"07459","body":{"query":[{"code":"Region","selection":{"filter":"item","values":["0301"]}}],"response":{"format":"json-stat2"}}}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('query_table', {
  "id": "07459",
  "body": {
    "query": [
      {
        "code": "Region",
        "selection": {
          "filter": "item",
          "values": [
            "0301"
          ]
        }
      }
    ],
    "response": {
      "format": "json-stat2"
    }
  }
});

Connect

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

{
  "mcpServers": {
    "ssb-no": {
      "url": "https://gateway.pipeworx.io/ssb-no/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 28, 2026