List UK Legislation Sections
ukleg.legislation.sectionsGet the complete list of sections, parts, and schedules (table of contents) for a specific piece of UK legislation. Returns each section with its type (section, schedule, part), number, title, and URL to the full section text. Use this to navigate the structure of an Act before retrieving specific provisions. Requires the legislation type, year, and chapter number (use ukleg.legislation.search to find these). Example: type=ukpga, year=2023, number=55 returns all sections of the Online Safety Act 2023. Example: type=ukpga, year=1998, number=42 returns sections of the Human Rights Act 1998. Data source: legislation.gov.uk — The National Archives, Open Government Licence v3.0, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Legislation type code. Common values: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), asc (Senedd Cymru/Wales Acts), nia (Northern Ireland Acts). | |
| year | Yes | Year the legislation was enacted (e.g. 2023 for legislation passed in 2023). | |
| number | Yes | Chapter or instrument number within the year (e.g. 55 for the Online Safety Act 2023 c.55). |
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. |