query_dataset
Pack: data-gov-sg · Endpoint: https://gateway.pipeworx.io/data-gov-sg/mcp
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": {
"region": "central"
}
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Rows and metadata from dataset query"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"data-gov-sg": {
"url": "https://gateway.pipeworx.io/data-gov-sg/mcp"
}
}
}
See Getting Started for client-specific install steps.