legislation_amendments
Pack: legislation-uk · 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/legislation_amendments for the schema, then POST the same URL with its arguments for the data.
What has amended this UK Act or instrument, and (in the other direction) what this legislation itself amends — “what has changed the Data Protection Act 2018”, “has section 13A been amended”, “what does the Victims and Prisoners Act 2024 amend”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Document type, e.g. “ukpga”. One of: ${TYPES}. |
year | number | yes | Year, e.g. 2018. |
number | number | yes | Item number within that year/type, e.g. 12 for the Data Protection Act 2018. |
direction | string | no | ”affected” (default) — changes made TO this legislation by other instruments. “affecting” — changes this legislation makes TO other instruments. |
page | number | no | Results page (default 1). 50 rows per page — see total_pages in the response. |
Example call
Arguments
{
"type": "ukpga",
"year": 2018,
"number": 12
}
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":"legislation_amendments","arguments":{"type":"ukpga","year":2018,"number":12}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('legislation_amendments', {
"type": "ukpga",
"year": 2018,
"number": 12
});
More examples
{
"type": "ukpga",
"year": 2024,
"number": 21,
"direction": "affecting"
}
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 legislation-uk pack
{
"mcpServers": {
"legislation-uk": {
"url": "https://gateway.pipeworx.io/legislation-uk/mcp"
}
}
}
See Getting Started for client-specific install steps.