Get Recent UK Legislation
ukleg.legislation.recentGet the most recently published or updated pieces of UK legislation. Returns recently enacted Acts, Statutory Instruments, and other legislation with title, type, year, chapter number, publication date, and brief description. Filter by legislation category: use primary for Acts of Parliament, secondary for Statutory Instruments, or specific type codes (ukpga, uksi, asp, asc, nia). Useful for tracking new laws, regulatory changes, and parliamentary activity. Data source: legislation.gov.uk — The National Archives, Open Government Licence v3.0, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by legislation category. Use primary for all primary legislation (Acts), secondary for all Statutory Instruments, or a specific code like ukpga, uksi, asp. Omit or use any for all types. | |
| limit | No | Number of recent legislation items to return (1–20, default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |