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

Arguments

{
  "type": "ukpga",
  "year": 2010,
  "number": 15
}

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":"get_legislation","arguments":{"type":"ukpga","year":2010,"number":15}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_legislation', {
  "type": "ukpga",
  "year": 2010,
  "number": 15
});

More examples

{
  "type": "uksi",
  "year": 2021,
  "number": 987
}

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