GovData Docs

MCP Legislation Tools

Tools for UK legislation — search Acts of Parliament and Statutory Instruments, or look up specific legislation by identifier.

Each tool call costs 10 credits. All tools are read-only and idempotent.

Tool Description Parameters
search_legislation Search UK legislation by title keyword, legislation type, and/or year. Returns matching items with identifiers, titles, and legislation.gov.uk URLs. q string
type string
year integer
lookup_legislation Look up a specific piece of UK legislation by its type, year, and number (e.g. ukpga/2006/46 for the Companies Act 2006). Returns full details and legislation.gov.uk URL. type string, required
year integer, required
number integer, required

Legislation Type Codes

Code Name
ukpgaUK Public General Act
uklaUK Local Act
uksiUK Statutory Instrument
wsiWales Statutory Instrument
ssiScottish Statutory Instrument
nisiNorthern Ireland Order in Council
nisrNorthern Ireland Statutory Rule
aspAct of the Scottish Parliament
ascAct of Senedd Cymru
ukdsiUK Draft Statutory Instrument

Related Resources

URI Description
govdata://legislation/types All legislation type codes and their descriptions

Data Coverage

Source legislation.gov.uk (The National Archives)
Date range 2000 – present (after backfill)
Records ~50K Acts and Statutory Instruments
Updated Weekly (Sunday)
Limitations UK Public General Acts and Statutory Instruments only. Does not include Welsh, Scottish, or NI-specific legislation.