za_law_search

Pack: south-africa-law · 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/za_law_search for the schema, then POST the same URL with its arguments for the data.

Search South African Acts of Parliament by title or subject words, e.g. “expropriation”, “national health” or “cybercrimes”. Matching is full-text over the Government’s Act pages, so results are Acts whose title or summary mention the words, most relevant first. Returns id, title, Act number and year (“Act 13 of 2024”), Government Gazette number and a link; 30 per page, next_page says whether to continue. Each Act is as published in the Government Gazette (not a consolidation). National Acts only, not provincial legislation or regulations. Pair with za_law_get.

Parameters

NameTypeRequiredDescription
querystringyesTitle or subject words, e.g. “expropriation” or “national health insurance”
pagenumbernoPage number, 1-based (default 1)

Example call

Arguments

{
  "query": "expropriation"
}

curl

curl -X POST https://gateway.pipeworx.io/south-africa-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"za_law_search","arguments":{"query":"expropriation"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('za_law_search', {
  "query": "expropriation"
});

Response shape

FieldTypeDescription
querystring
pagenumber
countnumber
resultsarray
next_pagenumber
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "page": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "act": {
            "type": "string"
          },
          "gazette_number": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "next_page": {
      "type": "number"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

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 south-africa-law pack
{
  "mcpServers": {
    "south-africa-law": {
      "url": "https://gateway.pipeworx.io/south-africa-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 17, 2026