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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Numeric table id, e.g. “07459”. |
body | object | yes | {query: [{code, selection: {filter: “item”, values: […]}}], response: {format: “json-stat2”}} |
selection | unknown | no | |
response | unknown | no |
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.