UK Legislation Provision Text (legislation.gov.uk)
legislationgovuk/section-text
Returns the current text of one numbered section of UK legislation from legislation.gov.uk, given the legislation type, year and number plus the section (for a statutory instrument the section number selects the regulation, article or rule of that number). The answer holds the Act or instrument title, the provision and parent headings, the territorial extent, the date of the version shown, and the provision as plain text (subsections numbered, at most 20,000 characters, cut on a line with `truncated` set when longer). Whole Acts and Schedules are not returned. Open Government Licence v3.0; served by Eden Engine; not an official legislation.gov.uk product.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.
Data source
Contains public sector information licensed under the Open Government Licence v3.0. Crown copyright, legislation.gov.uk (The National Archives). Where a document originates from the EU: material derived from the European Institutions, European Union, 1998-2019, re-used under the terms of Commission Decision 2011/833/EU. Served by Eden Engine; not an official legislation.gov.uk product.
Use it
Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.
Connect once and your AI can find and run this tool, and any other it needs.
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "legislationgovuk/section-text" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "legislationgovuk/section-text" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "legislationgovuk/section-text", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "legislationgovuk/section-text", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 25, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"type",
"year",
"number",
"section"
],
"properties": {
"type": {
"enum": [
"ukpga",
"ukla",
"uksi",
"asp",
"ssi",
"wsi",
"anaw",
"asc",
"nia",
"nisr",
"nisi",
"ukcm",
"mwa",
"ukci"
],
"type": "string",
"description": "Legislation type code: ukpga (UK public general Act), ukla (UK local Act), uksi (UK statutory instrument), asp (Act of the Scottish Parliament), ssi (Scottish statutory instrument), wsi (Welsh statutory instrument), anaw (Act of the National Assembly for Wales), asc (Act of Senedd Cymru), nia (Northern Ireland Act), nisr (Northern Ireland statutory rule), nisi (Northern Ireland order in council), ukcm (Church of England measure), mwa (Welsh Assembly measure), ukci (Church instrument)."
},
"year": {
"type": "integer",
"maximum": 2100,
"minimum": 1801,
"description": "Calendar year of the legislation, for example 2018."
},
"number": {
"type": "integer",
"maximum": 9999,
"minimum": 1,
"description": "Chapter or instrument number within the year, for example 12 for the Data Protection Act 2018 (ukpga/2018/12)."
},
"section": {
"type": "string",
"pattern": "^[0-9]{1,4}[A-Z]{0,3}$",
"description": "Section number, with any capital-letter suffix, for example 1, 172 or 3ZA. For a statutory instrument this is the regulation, article or rule number. A number the legislation does not have is refused by the source (404)."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"title",
"legislationUri",
"provisionUri",
"text",
"textCharacters",
"truncated"
],
"properties": {
"text": {
"type": "string",
"description": "The provision as plain text, one paragraph per line, notes and annotations left out."
},
"title": {
"type": "string",
"description": "Title of the Act or instrument that holds the provision."
},
"extent": {
"type": "string",
"description": "Territorial extent as the source codes it, for example E+W+S+N.I.; absent when not stated."
},
"heading": {
"type": "string",
"description": "Heading of the provision's group (the section heading); absent when it has none."
},
"truncated": {
"type": "boolean",
"description": "True when the text was cut at 20,000 characters (on a line boundary)."
},
"versionDate": {
"type": "string",
"description": "Date (YYYY-MM-DD) from which the version shown applies; absent when not stated."
},
"provisionUri": {
"type": "string",
"description": "Address of this provision on legislation.gov.uk."
},
"legislationUri": {
"type": "string",
"description": "Address of the whole Act or instrument on legislation.gov.uk."
},
"textCharacters": {
"type": "integer",
"description": "Length of the full provision text in characters, before any cut."
}
},
"additionalProperties": false
}