Get Explanatory Notes
get_explanatory_notesRead the Explanatory Notes for a UK Act — plain-language commentary written by the government department responsible, explaining what a section is meant to do and why. NOT part of the law and not endorsed by Parliament — use for context on intent, never as the text of the law itself (use get_legislation_section for that). Pass section to get the commentary for just that section; omit it for an overview plus the notes' own table of contents. Not every Act has notes (Appropriation, Consolidated Fund, Finance and Consolidation Acts never get them) and not every section gets its own paragraph — some are grouped or unremarked. Notes are written for the Act AS ENACTED and are not updated for later amendments. Source: legislation.gov.uk (HTML only — there is no XML/data feed for notes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts). | |
| year | Yes | Year, e.g. 2018. | |
| number | Yes | Item number within that year/type, e.g. 12 for the Data Protection Act 2018. | |
| section | No | Optional: section number, e.g. "5", to get just that section's commentary. Omit for an overview. |