gb-eli-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GB_ELI_BASE_URL | No | Base URL of the legislation.gov.uk API | https://www.legislation.gov.uk |
| GB_ELI_AUDIT_DIR | No | Directory for audit logs | ~/.matematic/audit |
| GB_ELI_CACHE_DIR | No | Directory for caching responses | ~/.matematic/cache/gb-eli |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gb_searchA | Search UK legislation on legislation.gov.uk. Maps to the official Atom search feed ( |
| gb_get_actB | Fetch UK legislation metadata from legislation.gov.uk by reference. |
| gb_get_textA | Fetch the full text of UK legislation. Uses legislation.gov.uk's content-negotiation path suffix ( |
| gb_recent_legislationA | UK legislation published since Maps to the Atom search feed sorted/filtered by publication year, optionally scoped
to one |
| gb_search_case_lawA | Search UK case law on The National Archives' Find Case Law service. Maps to the public Atom feed at |
| gb_get_caseA | Fetch a UK judgment from The National Archives' Find Case Law service. |
| gb_search_govukA | Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more. Maps to the GOV.UK Search API ( |
| gb_get_govuk_contentA | Fetch one GOV.UK document (tribunal decision, HMRC manual section, CMA case). Maps to the GOV.UK Content API ( |
| gb_coverageA | Declare what this connector covers, how it is sourced, and what it does NOT cover. Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead. Returns:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Tools are mostly separated by source and action: legislation search/retrieval vs case law search/retrieval vs GOV.UK content search/retrieval. Minor ambiguity exists between gb_search and the domain-qualified search tools, and between gb_get_act vs gb_get_text for obtaining full legislation text.
Names use lowercase snake_case with an gb_ prefix and mostly follow get_/object or search_domain. Deviations are minor: gb_search lacks a resource qualifier, and gb_recent_legislation/gb_coverage are noun-only rather than verb-first.
Nine tools is well-scoped for a read-only legal research connector spanning legislation, case law, GOV.UK documents, and coverage. Each tool has a clear role and none feel redundant.
Core workflows are covered: search and retrieve for each major source, plus recent legislation and a coverage mechanism. Minor gaps exist, such as no direct PDF attachment extraction for some GOV.UK tribunal decisions, but gb_coverage explicitly notes known gaps and fallbacks.