package_search

Pack: data-govt-nz · Endpoint: https://gateway.pipeworx.io/data-govt-nz/mcp

Full-text + faceted search.

Parameters

NameTypeRequiredDescription
qstringno
fqstringno
sortstringno
rowsnumberno
startnumberno
facet_fieldstringno

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

FieldTypeDescription
countnumberTotal number of matching datasets
resultsarraySearch result datasets
facetsobjectFaceted 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, or use one-click install buttons:

{
  "mcpServers": {
    "data-govt-nz": {
      "url": "https://gateway.pipeworx.io/data-govt-nz/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 8, 2026