query_table

Pack: stat-lv · Endpoint: https://gateway.pipeworx.io/stat-lv/mcp

Pull data from a table. body is a PxWeb query object. Use the bare table path with no “.px” suffix.

Parameters

NameTypeRequiredDescription
pathstringyese.g. “OSP_PUB/POP/IR/IRS/IRS010”
bodyobjectyes{query: [{code, selection: {filter, values}}], response: {format: “json-stat2”}}
selectionunknownno
responseunknownno

Example call

Arguments

{
  "path": "OSP_PUB/POP/IR/IRS/IRS010",
  "body": {
    "query": [
      {
        "code": "Gads",
        "selection": {
          "filter": "item",
          "values": [
            "1"
          ]
        }
      }
    ],
    "response": {
      "format": "json-stat2"
    }
  }
}

curl

curl -X POST https://gateway.pipeworx.io/stat-lv/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_table","arguments":{"path":"OSP_PUB/POP/IR/IRS/IRS010","body":{"query":[{"code":"Gads","selection":{"filter":"item","values":["1"]}}],"response":{"format":"json-stat2"}}}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('query_table', {
  "path": "OSP_PUB/POP/IR/IRS/IRS010",
  "body": {
    "query": [
      {
        "code": "Gads",
        "selection": {
          "filter": "item",
          "values": [
            "1"
          ]
        }
      }
    ],
    "response": {
      "format": "json-stat2"
    }
  }
});

Connect

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

{
  "mcpServers": {
    "stat-lv": {
      "url": "https://gateway.pipeworx.io/stat-lv/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 29, 2026