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
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Document type, e.g. “ukpga”. One of: ${TYPES}. |
title | string | yes | Words to match in the title, e.g. “equality”. |
year | number | no | Optional year to restrict results, e.g. 2010. |
page | number | no | Results 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.