Search UK Legislation by Title (legislation.gov.uk)
legislationgovuk/search-legislation
Searches the titles of UK legislation on legislation.gov.uk for the given words, optionally limited to one legislation type, and returns up to 20 matching entries per call (default 10) with title, address, type, year, number, dates and summary. Use the year and number with the section text tool to read a provision. 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/search-legislation" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "legislationgovuk/search-legislation" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "legislationgovuk/search-legislation", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "legislationgovuk/search-legislation", 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": [
"title"
],
"properties": {
"page": {
"type": "integer",
"default": 1,
"maximum": 50,
"minimum": 1,
"description": "Page of results, starting at 1 (default 1). Each page holds `count` entries."
},
"type": {
"enum": [
"all",
"ukpga",
"ukla",
"uksi",
"asp",
"ssi",
"wsi",
"anaw",
"asc",
"nia",
"nisr",
"nisi",
"ukcm",
"mwa",
"ukci"
],
"type": "string",
"default": "all",
"description": "Legislation type to search, or `all` (default). 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)."
},
"count": {
"type": "integer",
"default": 10,
"maximum": 20,
"minimum": 1,
"description": "Entries to return, 1 to 20 (default 10)."
},
"title": {
"type": "string",
"pattern": "^[A-Za-z0-9 ,.'&-]{2,100}$",
"description": "Words to find in the title of the legislation, for example data protection. Letters, digits, spaces and , . ' & - only."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"page",
"morePages",
"count",
"entries"
],
"properties": {
"page": {
"type": "integer",
"description": "Page number of this answer, starting at 1."
},
"count": {
"type": "integer",
"description": "Entries in this answer."
},
"entries": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"uri",
"published",
"updated"
],
"properties": {
"uri": {
"type": "string",
"description": "Address of the legislation on legislation.gov.uk, for example https://www.legislation.gov.uk/uksi/2026/1123."
},
"year": {
"type": "integer",
"description": "Year of enactment or making."
},
"title": {
"type": "string",
"description": "Title of the Act or instrument (the English title where a Welsh one is also given)."
},
"number": {
"type": "integer",
"description": "Number within the year (chapter, SI number or similar)."
},
"summary": {
"type": "string",
"description": "The long title or explanatory summary; absent when the source gives none."
},
"updated": {
"type": "string",
"description": "Date and time the record was last updated (ISO 8601)."
},
"published": {
"type": "string",
"description": "Date and time the document was first published on the site (ISO 8601)."
},
"documentType": {
"type": "string",
"description": "Type of legislation as named by the source, for example UnitedKingdomStatutoryInstrument."
}
},
"additionalProperties": false
},
"description": "The legislation, in the source's order, at most 20."
},
"morePages": {
"type": "integer",
"description": "Further pages the source reports after this one (0 when this is the last)."
}
},
"additionalProperties": false
}