search_legislation

Pack: legislation-uk · Endpoint: https://gateway.pipeworx.io/legislation-uk/mcp

Search UK legislation by title words (and optional year), returning matching Acts/instruments with their full-text URLs.

Parameters

NameTypeRequiredDescription
typestringyesDocument type, e.g. “ukpga”. One of: ${TYPES}.
titlestringyesWords to match in the title, e.g. “equality”.
yearnumbernoOptional year to restrict results, e.g. 2010.
pagenumbernoResults page (default 1). 20 results per page.

Example call

Arguments

{
  "type": "ukpga",
  "title": "equality"
}

curl

curl -X POST https://gateway.pipeworx.io/legislation-uk/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_legislation","arguments":{"type":"ukpga","title":"equality"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_legislation', {
  "type": "ukpga",
  "title": "equality"
});

More examples

{
  "type": "ukpga",
  "title": "data protection",
  "year": 2018,
  "page": 1
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "legislation-uk": {
      "url": "https://gateway.pipeworx.io/legislation-uk/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 29, 2026