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 (Acts of Parliament, Statutory Instruments, etc.) by title keyword, legislation type, and/or year. 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). 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

Related Prompts

legislation-research — research legislation by topic and summarise relevant Acts and instruments.

Data Coverage

Source legislation.gov.uk (The National Archives)
Date range 2000–present for all ten series (or later inception)
Records About 96,000 published series/year results through 2026 across all ten type codes
Updated Weekly; historical backfill is resumable by type and year
Limitations UKSI browse totals include Welsh SIs and therefore overlap WSI totals. Draft SIs can be withdrawn or replaced; local Acts are sparse.