get_legislation
Pack: legislation-uk · Endpoint: https://gateway.pipeworx.io/legislation-uk/mcp
Get metadata for one specific piece of UK legislation by type + year + number (e.g. ukpga/2010/15 = Equality Act 2010).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Document type, e.g. “ukpga”. One of: ${TYPES}. |
year | number | yes | Year, e.g. 2010. |
number | number | yes | Item number within that year/type, e.g. 15. |
Example call
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":"get_legislation","arguments":{}}}'
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.