Search Legislation
search_legislationSearch UK legislation by keyword, statute title, or enactment year to find statutes, acts, codes, and regulations from official legal sources.
Instructions
Search United Kingdom (UK) national legislation (statutes, acts, codes, regulations, official gazette) via UK Legislation API (legislation.gov.uk) & i.AI Lex API (lex.lab.i.ai.gov.uk) and live national legal archives.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Optional enactment year filter. | |
| limit | No | Maximum number of results to return. | |
| query | Yes | Keywords or statute title/number to search in United Kingdom legislation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||