query_dataset
Pack: data-gov-sg · 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/query_dataset for the schema, then POST the same URL with its arguments for the data.
Fetch rows from a dataset. Supports limit, offset, and filter map (column → value).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dataset_id | string | yes | Dataset ID |
limit | number | no | 1-10000 (default 100) |
offset | number | no | 0-based row offset |
filters | object | no | Column-value filter map |
additionalProperties | string | no |
Example call
Arguments
{
"dataset_id": "d_8b84c4ee58e3cfc0ece0d773c8ca6abc"
}
curl
curl -X POST https://gateway.pipeworx.io/data-gov-sg/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_dataset","arguments":{"dataset_id":"d_8b84c4ee58e3cfc0ece0d773c8ca6abc"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('query_dataset', {
"dataset_id": "d_8b84c4ee58e3cfc0ece0d773c8ca6abc"
});
More examples
{
"dataset_id": "d_8b84c4ee58e3cfc0ece0d773c8ca6abc",
"limit": 500,
"offset": 0,
"filters": {
"town": "BEDOK"
}
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Rows and metadata from dataset query"
}
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 data-gov-sg pack
{
"mcpServers": {
"data-gov-sg": {
"url": "https://gateway.pipeworx.io/data-gov-sg/mcp"
}
}
}
See Getting Started for client-specific install steps.