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

NameTypeRequiredDescription
typestringyesDocument type, e.g. “ukpga”. One of: ${TYPES}.
yearnumberyesYear, e.g. 2010.
numbernumberyesItem 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.

Regenerated from source · build May 31, 2026