Skip to main content
Glama
United Kingdom Legal Research MCP Server

United Kingdom Legal Research MCP Server

by jurisatlas

Search Legislation

search_legislation

Search 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

NameRequiredDescriptionDefault
yearNoOptional enactment year filter.
limitNoMaximum number of results to return.
queryYesKeywords or statute title/number to search in United Kingdom legislation.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, and it does add real value by disclosing that results are aggregated across legislation.gov.uk, the i.AI Lex API, and live national archives. It does not state result ranking/deduplication behavior, coverage caveats for devolved vs national legislation, or any auth/rate-limit expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb and resource first, then document types, then data sources. The trailing 'and live national legal archives' is slightly vague but does not bloat the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is not required, and the description covers scope, jurisdiction, and source systems adequately for a search tool. The remaining gap is behavioral: nothing about result ordering, pagination beyond the limit parameter, or coverage limits across the three sources.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with only three parameters, so the schema already documents query, year, and limit fully. The description adds no extra meaning about how query matches titles vs keywords across the two backends, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb plus resource with clear scope: search UK national legislation, and it enumerates the covered document types (statutes, acts, codes, regulations, official gazette). The resource itself distinguishes it from the case-law siblings, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the resource scope: an agent can infer this is for statute/regulation lookups rather than court decisions. There is no explicit when-to-use statement, no when-not-to-use, and no pointer to search_case_law or verify_citation for adjacent tasks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.