Model Context Protocol server for UK legislation (legislation.gov.uk). Provides tools to search and retrieve UK legislation via the Model Context Protocol.
14 tools with consistent verb-noun naming (search_, get_, count_) and complete input schemas. All tools have descriptions (avg 95 chars, within 10-1024 range). Parameters are typed and described. However, output schemas are not documented in the source code, LLMs cannot see what fields to expect from responses. Error handling is minimal; no recovery guidance or actionable error messages visible. Tool composition is sound (single responsibility), but descriptions lack WHEN/WHY context and dependency hints. No tool annotations visible in source despite feature flag claiming toolAnnotations=true.
Count UK legislation matching advanced search criteria using the Research API.
Count duties and powers in the powers-and-duties dataset matching search criteria.
Retrieve the full text of a piece of UK legislation.
Retrieve a specific fragment (section, part, schedule) of UK legislation.
Retrieve metadata for a specific piece of UK legislation by ID.
Retrieve the table of contents for a piece of UK legislation.
Retrieve duties and powers for a specific piece of UK legislation from the powers-and-duties dataset.
Retrieve a resource file from the server's resource collection.
Output schemas not documented. LLMs cannot see what fields responses contain, forcing them to guess downstream field names and risk broken tool chains. E.g., does search_legislation return 'legislation_id' or 'id'? Does it include 'year' and 'number' for chaining to get_legislation?
No error handling guidance. Tools return errors but do not tell LLMs what to do next (retry, ask user, try alternative tool). E.g., if legislation not found, should the agent call search_legislation first?
Descriptions lack WHEN/WHY context. E.g., 'Search UK legislation by keyword' does not explain when to use this vs search_legislation_semantic or search_legislation_advanced. Descriptions should guide tool selection.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
Search for effects (amendments, repeals, modifications) on UK legislation.
Search UK legislation by keyword. Returns matching acts and statutory instruments with metadata.
Advanced search of UK legislation using the Research API with complex query syntax.
Search specific sections of UK legislation using semantic/vector search.
Search UK legislation using semantic/vector search for conceptual matching.
Search the powers-and-duties dataset for duties and powers imposed by UK legislation.
Pagination parameters (limit, offset, page) lack constraints. No min/max documented. Can an LLM pass limit=999999? What is the server's max page size?
Tool annotations declared in feature flags but not visible in source code. toolAnnotations=true but readOnlyHint/destructiveHint/idempotentHint not found in tool definitions. Verify annotations are actually registered.