package_search
Pack: data-govt-nz · 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/package_search for the schema, then POST the same URL with its arguments for the data.
Full-text + faceted search.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | no | |
fq | string | no | |
sort | string | no | |
rows | number | no | |
start | number | no | |
facet_field | string | no |
Example call
Arguments
{
"q": "housing"
}
curl
curl -X POST https://gateway.pipeworx.io/data-govt-nz/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"package_search","arguments":{"q":"housing"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('package_search', {
"q": "housing"
});
More examples
{
"q": "health",
"rows": 20,
"start": 0
}
{
"q": "education",
"fq": "organization:stats-nz",
"sort": "score desc"
}
Response shape
| Field | Type | Description |
|---|---|---|
count | number | Total number of matching datasets |
results | array | Search result datasets |
facets | object | Faceted search results |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of matching datasets"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Dataset ID"
},
"name": {
"type": "string",
"description": "Dataset name"
},
"title": {
"type": "string",
"description": "Dataset title"
},
"notes": {
"type": "string",
"description": "Dataset description"
},
"author": {
"type": "string",
"description": "Dataset author"
},
"organization": {
"type": "object",
"description": "Publishing organization"
},
"tags": {
"type": "array",
"items": {
"type": "object"
},
"description": "Associated tags"
},
"resources": {
"type": "array",
"items": {
"type": "object"
},
"description": "Dataset resources"
}
}
},
"description": "Search result datasets"
},
"facets": {
"type": "object",
"description": "Faceted search results"
}
},
"description": "Full-text and faceted search results"
}
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-govt-nz pack
{
"mcpServers": {
"data-govt-nz": {
"url": "https://gateway.pipeworx.io/data-govt-nz/mcp"
}
}
}
See Getting Started for client-specific install steps.