Skip to main content
Glama

gb-eli-mcp

An MCP server for legislation.gov.uk, The National Archives' official portal for United Kingdom legislation. It searches and retrieves Acts of Parliament, UK Statutory Instruments, and the equivalent instruments of the Scottish Parliament, Senedd Cymru/Welsh Parliament and Northern Ireland Assembly, with persistent identifiers and verifiable citations.

Part of the MateMatic eu-legal-mcp production line: the UK counterpart of the Polish sejm-eli-mcp and the German de-eli-mcp, built on the same architecture and citation contract against the UK's own source.

No native ELI. legislation.gov.uk does not publish a native /eli/ namespace (confirmed live: GET /eli/ukpga/2018/12 returns 404), even though its own persistent-identifier scheme predates and is closely related to ELI - the UK is widely credited with pioneering the URI-based legislation-identifier concept that ELI later formalised EU-wide. eli_uri therefore carries the UK's own stable id URI (https://www.legislation.gov.uk/id/{type}/{year}/{number}) instead of a fabricated ELI path - the same disclosure pattern used by this factory's nl-eli-mcp and se-eli-mcp. See CONSTITUTION.md Art. 4.

Licence. Content is published under the Open Government Licence v3.0 (confirmed live from the site's own /help page), which permits copying, publishing and adapting with attribution. This connector only relays that public content, with a source_url on every response.

The eight tools

Tool

What it does

gb_search

Search legislation by text, doc type and year (/all/data.feed or /{doc_type}/data.feed).

gb_get_act

Fetch act/instrument metadata by reference (e.g. ukpga/2018/12).

gb_get_text

Fetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv).

gb_recent_legislation

Legislation published since a date, newest-first, optionally by doc type.

gb_search_case_law

Search UK judgments via The National Archives' Find Case Law Atom feed, by text, court, and date range.

gb_get_case

Fetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallback.

gb_search_govuk

Search GOV.UK documents via the keyless Search API - employment/tax/property tribunal decisions, HMRC internal manuals, CMA cases - with server-side date filters and real totals.

gb_get_govuk_content

Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full text.

gb_coverage

Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

GOV.UK coverage (added v0.3.0, feature-003)

One upstream, many institutions: gb_search_govuk filters by document_type. Live-verified totals (2026-07-07, from the Search API's own total/facet fields - probe: https://www.gov.uk/api/search.json?count=0&facet_content_store_document_type=1000):

document_type

Documents

employment_tribunal_decision

132,162

hmrc_manual_section

85,315

residential_property_tribunal_decision

17,088

employment_appeal_tribunal_decision

2,571

cma_case

2,565

utaac_decision (Upper Tribunal, AAC)

2,031

tax_tribunal_decision

1,414

asylum_support_decision

101

See SOURCES.md for the full per-source ledger, including what was scouted and deliberately rejected (ICO, FCA, IAC) and why.

Every response carries the contract: eli_uri (e.g. https://www.legislation.gov.uk/id/ukpga/2018/12), human_readable_citation (e.g. Data Protection Act 2018 c. 12), and source_url. Case-law responses carry the same-spirit contract (human_readable_citation, source_url, dataset_note) - see CONSTITUTION.md Art. 5.

Related MCP server: UK Case Law MCP Server

Install

cd gb-eli-mcp
pip install -e .

Configure (Claude Code / any MCP client)

Copy .mcp.json.example and adjust if needed:

{
  "mcpServers": {
    "gb-eli-mcp": { "command": "gb-eli-mcp" }
  }
}

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the gb-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

python -m pip install gb-eli-mcp
python -m gb_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m gb_eli_mcp.

{ "mcpServers": { "gb-eli-mcp": { "command": "python", "args": ["-m", "gb_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Environment:

  • GB_ELI_BASE_URL - default https://www.legislation.gov.uk

  • GB_ELI_CASELAW_BASE_URL - default https://caselaw.nationalarchives.gov.uk

  • GB_ELI_GOVUK_BASE_URL - default https://www.gov.uk

  • GB_ELI_CACHE_DIR - default ~/.matematic/cache/gb-eli

  • GB_ELI_AUDIT_DIR - default ~/.matematic/audit

No API key. legislation.gov.uk is keyless.

Governance

  • Public data only - read-only against legislation.gov.uk; no client data leaves the machine beyond search parameters.

  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/gb-eli-mcp.jsonl.

  • Vendor-neutral - the server talks only to legislation.gov.uk and the local filesystem; no LLM provider, no telemetry.

  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md (the binding rules) and DISCOVERY.md (the live API probe).

Tests

pip install -e ".[dev]"
pytest tests/test_instructions_drift.py -v   # offline
pytest tests/test_citations_case_law.py -v   # offline
pytest tests/test_citations_govuk.py -v      # offline
pytest tests/test_smoke.py -v                # hits live legislation.gov.uk
pytest tests/test_smoke_case_law.py -v       # hits live caselaw.nationalarchives.gov.uk
pytest tests/test_smoke_govuk.py -v          # hits live www.gov.uk

Licence

Apache-2.0. (c) Matematic Solutions / Wieslaw Mazur.

Note: the code in this repository is Apache-2.0. The legislation content fetched at runtime from legislation.gov.uk remains Crown copyright, published under the Open Government Licence v3.0 - not relicensed by this project.

Available Tools

9 tools
gb_coverageA
Read-onlyIdempotent

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: Coverage with families, an as-of note, and a non-empty list of known gaps.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
statusNo
familiesNo
as_of_noteYesStates what the dates mean, and what they do not promise.
known_gapsNoNever empty. An empty list would mean 'not checked', not 'no gaps'.

TDQS

A4.7/5.0
Behavior5/5

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

The description adds meaningful behavioral context beyond the annotations: it reveals that the connector may be incomplete ('the absence may be a gap in this connector rather than in the law') and promises a fallback location for each gap. It also discloses sourcing and non-coverage limits. The annotations already establish read-only and open-world behavior, and the description complements them with actionable caveats.

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

Conciseness5/5

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

The description is compact and front-loaded: core action, call conditions, gap/fallback logic, and return summary. Every sentence carries distinct information and none is fluff. The 'does NOT cover' caveat is placed early where it matters most.

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

Completeness5/5

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

With zero parameters and an existing output schema, the description adequately covers what the tool does, how data is sourced, what limitations exist, and what to expect in the return (families, as-of note, known gaps). The fallback guidance completes the operational picture for an agent. Nothing essential is missing.

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

Parameters4/5

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

The tool takes zero parameters, so there are no argument semantics to miscommunicate. Schema description coverage is 100% trivially, and the description makes clear no input is required. A baseline of 4 applies for 0-param tools.

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

Purpose5/5

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

The description opens with 'Declare what this connector covers, how it is sourced, and what it does NOT cover' – a specific verb and resource that clearly distinguishes it from sibling tools like gb_search or gb_get_act. It also states the exact call contexts: before claiming a law lacks something or when a search returns empty. This is unambiguous.

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

Usage Guidelines4/5

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

The description explicitly states trigger conditions: 'Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty.' This provides clear context for when to invoke it. It does not name explicit exclusions or alternatives, but the tool is a unique meta-tool among siblings, making that gap minor.

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

gb_get_actB
Read-onlyIdempotent

Fetch UK legislation metadata from legislation.gov.uk by reference.

ParametersJSON Schema
NameRequiredDescriptionDefault
referenceYesa reference like ``"ukpga/2018/12"`` (Data Protection Act 2018), ``"uksi/2019/419"``, ``"asp/2015/1"``, or a full legislation.gov.uk URL. An optional point-in-time date suffix (``/2026-06-19``) selects a specific revised version.

Output Schema

ParametersJSON Schema
NameRequiredDescription
isbnNo
yearYes
titleNo
numberYes
eli_uriYes
doc_typeYes
made_dateNo
publisherNo
source_urlYes
descriptionNo
dataset_noteNo
date_modifiedNo
enactment_dateNo
document_statusNo
restrict_extentNo
document_categoryNo
document_main_typeNo
restrict_start_dateNo
human_readable_citationYes

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, covering the safety profile. The description adds that it fetches metadata from legislation.gov.uk by reference, but offers no additional behavioral context such as rate limits or response format. This is a minimal but non-contradictory addition, deserving a middle score.

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

Conciseness5/5

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

The description is a single 11-word sentence that starts with the verb 'Fetch' and wastes no words. It is appropriately sized for the tool's simplicity.

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?

For a one-parameter tool with a detailed schema and informative annotations plus an output schema, the description is sufficient to understand the tool's purpose and invocation. It does not explicitly discuss alternative tools or edge cases, but these are covered in other dimensions.

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?

The input schema's reference parameter is thoroughly described with example formats and optional date suffix, achieving 100% schema description coverage. The tool description's mention of 'by reference' adds no new meaning beyond this. Thus the baseline score 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 'Fetch UK legislation metadata from legislation.gov.uk by reference' uses a specific verb and resource, clearly identifying the tool's function. It distinguishes from siblings like gb_search and gb_get_text by emphasizing 'metadata' and 'by reference', though it doesn't explicitly name alternatives.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as gb_search or gb_get_text. It neither mentions exclusions nor suggests related tools for different needs, leaving the agent to infer usage from the tool's name and schema.

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

gb_get_caseA
Read-onlyIdempotent

Fetch a UK judgment from The National Archives' Find Case Law service.

ParametersJSON Schema
NameRequiredDescriptionDefault
referenceYesa neutral citation (e.g. ``"[2026] EWHC 1698 (Admin)"``), a Find Case Law URI/path (e.g. ``"ewhc/admin/2026/1698"`` or a full ``caselaw.nationalarchives.gov.uk`` URL), or an opaque ``"d-{uuid}"`` id. Neutral citations resolve directly to a URI only for pre-April-2025 documents (``/{court}/{year}/{number}``); for later documents (opaque id), use `gb_search_case_law` first to find the ``uri``.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dateNo
courtNo
titleNo
formatNo
contentNo
pdf_urlNo
byte_sizeNo
source_urlYes
dataset_noteNo
neutral_citationNo
human_readable_citationYes

TDQS

A4/5.0
Behavior3/5

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

Annotations already provide readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, covering safety and idempotency. Description adds the specific data source but does not elaborate on error handling, availability, or other behavioral details beyond what annotations convey.

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

Conciseness5/5

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

The main description is a single, concise sentence with no wasted words. The overall definition is well-structured with the necessary schema and annotations, making it easy to parse.

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?

Given the tool has a simple interface (1 parameter, no nested objects), the description combined with the output schema and annotations covers the essential aspects. However, it could mention what happens if the judgment is not found or confirm the output format explicitly.

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

Parameters4/5

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

The single parameter 'reference' has a detailed schema description (100% coverage) that explains multiple input formats and provides a usage hint about pre/post April 2025 documents. This adds significant meaning beyond the parameter name and type.

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

Purpose5/5

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

Description clearly states verb 'Fetch' and resource 'a UK judgment' from a specific source 'The National Archives' Find Case Law service'. It distinguishes from sibling tools like gb_get_act and gb_get_govuk_content by targeting case law specifically.

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?

Main description does not explicitly state when to use this tool vs alternatives. However, the parameter description hints that for newer documents with opaque ids, gb_search_case_law should be used first, providing indirect guidance. Lacks explicit when-to-use or when-not-to-use context.

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

gb_get_govuk_contentA
Read-onlyIdempotent

Fetch one GOV.UK document (tribunal decision, HMRC manual section, CMA case).

Maps to the GOV.UK Content API (www.gov.uk/api/content/{path} - confirmed live 2026-07-07). Tribunal decisions carry the judgment as a PDF in attachments with only a short HTML body; HMRC manual sections carry the full text in body_html.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesthe document's site path - take it from a ``gb_search_govuk`` result's ``link`` field, e.g. ``"/employment-tribunal-decisions/mr-b-king-v-thales-dis-uk-ltd-1403603-slash-2020"`` or ``"/hmrc-internal-manuals/vat-government-and-public-bodies/vatgpb9700"``. A full ``www.gov.uk`` URL is also accepted.

Output Schema

ParametersJSON Schema
NameRequiredDescription
titleNo
base_pathNo
body_htmlNo
byte_sizeNo
source_urlYes
attachmentsNo
descriptionNo
dataset_noteNo
document_typeNo
public_updated_atNo
first_published_atNo
human_readable_citationYes

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable context beyond these by explaining the API mapping, the confirmed live status, and content-specific differences (PDF attachments vs. body_html). It does not cover error handling or rate limits, but the annotation coverage lowers the bar.

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

Conciseness5/5

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

The description is compact and purpose-first, using three sentences to convey the function, API endpoint, and important content-type caveats. Every clause adds information; there is no filler or redundancy.

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

Completeness5/5

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

Despite having only one parameter, the description covers the key behavioral nuances (attachments vs. body_html) and references the output schema implicitly by noting where content appears. With a detailed schema, output schema, and strong annotations, this is a complete and self-sufficient tool description.

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?

The schema description provides 100% coverage for the single 'path' parameter, including its source, format, and examples. The tool description itself adds no further parameter semantics, so with high schema coverage the baseline of 3 is appropriate.

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

Purpose5/5

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

The description uses a specific verb ('Fetch') with a clear resource ('one GOV.UK document') and enumerates the covered content types (tribunal decision, HMRC manual section, CMA case). This distinguishes it from sibling tools like gb_get_act or gb_get_case by scope and source.

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

Usage Guidelines4/5

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

It provides clear context on when to use the tool (fetching a single GOV.UK document) and gives direction on obtaining the path from gb_search_govuk results. However, it does not explicitly name alternative tools or state when not to use it, so it falls short of full exclusion guidance.

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

gb_get_textA
Read-onlyIdempotent

Fetch the full text of UK legislation.

Uses legislation.gov.uk's content-negotiation path suffix (/data.{format}) - xml (the site's own legislation.xsd schema), html, akn (Akoma Ntoso), rdf, pdf, or csv.

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoone of ``"xml"``, ``"html"``, ``"akn"``, ``"rdf"``, ``"pdf"``, ``"csv"``.html
referenceYesreference of the act/instrument (work or point-in-time expression).

Output Schema

ParametersJSON Schema
NameRequiredDescription
formatYes
contentNo
eli_uriYes
byte_sizeNo
source_urlYes
dataset_noteNo
human_readable_citationNo

TDQS

A4/5.0
Behavior4/5

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

Annotations (readOnlyHint, openWorldHint, idempotentHint, destructiveHint) already indicate safety. The description adds valuable context about the source (legislation.gov.uk) and format options, enhancing transparency beyond annotations.

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

Conciseness5/5

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

Two sentences, front-loaded with purpose, no wasted words. Each sentence earns its place, explaining purpose and technical details efficiently.

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?

Given the simple tool (2 params, output schema present, annotations thorough), the description covers the source, format options, and reference requirement. It omits return-value details, but output schema likely covers that.

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 coverage is 100%, so baseline is 3. The description provides context about the content-negotiation path but does not add new parameter meaning beyond the schema definitions for 'reference' and 'format'.

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

Purpose5/5

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

The description clearly states 'Fetch the full text of UK legislation' with a specific verb and resource. It distinguishes itself from siblings like gb_get_act and gb_get_case by focusing on text retrieval in multiple formats.

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?

The description explains the mechanism (content-negotiation) but does not explicitly state when to use this tool versus alternatives like gb_get_act or gb_search. No when-not or exclusion criteria are provided.

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

gb_recent_legislationA
Read-onlyIdempotent

UK legislation published since since_iso (ISO 8601 date), newest-first.

Maps to the Atom search feed sorted/filtered by publication year, optionally scoped to one doc_type. legislation.gov.uk's public search feed does not support a generic dateFrom filter across all types, so this tool filters the requested year's feed by the published date client-side.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNomax items to return (1..100).
doc_typeNorestrict to one UK document-type code (e.g. ``"ukpga"``, ``"uksi"``).
since_isoYesa date in ISO 8601 (e.g. ``"2026-01-01"``). Only the year is used to select the feed to scan; items are then filtered to on/after this date.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, but the description adds a valuable behavioral trait: it explains that the public feed does not support a generic dateFrom filter, so the tool fetches the yearly feed and filters client-side. This discloses a limitation and implementation nuance that an agent should know, going beyond the structured hints.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the main verb and resource. It includes necessary implementation details without fluff. Every sentence adds value: purpose, mapping to feed, and filtering rationale.

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

Completeness5/5

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

With an output schema present and robust annotations, the description completes the picture by explaining the feed source, the client-side filtering rationale, and the optional scoping. This is adequate for an agent to select and invoke the tool correctly, including understanding the year-based limitation.

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

Parameters4/5

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

Schema coverage is 100% and the description adds meaningful semantics beyond the schema. It clarifies that 'since_iso' uses only the year to choose the feed and then filters to on/after the date, and that doc_type scopes the feed. This extra context helps the agent understand parameter behavior beyond the raw schema descriptions.

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

Purpose5/5

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

The description opens with a specific action and resource: 'UK legislation published since since_iso (ISO 8601 date), newest-first.' This clearly identifies the tool as a date-filtered list of legislation, distinguishing it from siblings like gb_search which searches generally. The optional doc_type scoping further refines the purpose.

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

Usage Guidelines4/5

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

The description provides clear context: this is for retrieving legislation by publication date, optionally restricted to a document type. It explains the underlying feed mechanism and client-side filtering, but it does not explicitly name alternatives or state when not to use it. This is strong context without explicit exclusions.

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

gb_search_case_lawA
Read-onlyIdempotent

Search UK case law on The National Archives' Find Case Law service.

Maps to the public Atom feed at caselaw.nationalarchives.gov.uk/atom.xml (confirmed live 2026-07-06 - keyless, Open Justice Licence). A separate service from legislation.gov.uk: different host, different Atom dialect (tna: namespace).

ParametersJSON Schema
NameRequiredDescriptionDefault
courtNocourt/tribunal code, e.g. ``"ewhc/admin"``, ``"ewca/civ"``, ``"uksc"``. Passed through to Find Case Law's own ``court`` query param.
limitNomax items to return (1..100).
queryNofull-text search (matches judgment text in order, per upstream docs).
to_dateNoISO 8601 date (YYYY-MM-DD), inclusive. Same client-side caveat.
from_dateNoISO 8601 date (YYYY-MM-DD), inclusive. Find Case Law's public API has no documented server-side date-range filter, so this is applied client-side against each result's ``date`` field after fetching.

Output Schema

ParametersJSON Schema
NameRequiredDescription
itemsNo
query_echoNo
dataset_noteNo
total_estimateYes

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint as true/false. The description adds value by confirming the service is live, keyless, and uses Open Justice Licence, and notes the Atom dialect ('tna:' namespace). No contradiction.

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

Conciseness5/5

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

The description is concise (two sentences plus a mapping note), front-loaded with the main purpose, and contains no redundant information. Every sentence adds value.

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?

Given the number of parameters (all optional) and the presence of an output schema, the description provides sufficient context about the service and its caveats (client-side date filtering). It is mostly complete, though it does not explain default behavior when no filters are applied.

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%. The description does not add new meaning beyond the schema; it only mentions the Atom feed mapping. Baseline 3 is appropriate since the schema already documents the parameters adequately.

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

Purpose5/5

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

The description clearly states 'Search UK case law' with a specific verb and resource. It distinguishes from siblings by noting it targets The National Archives' Find Case Law service and is separate from legislation.gov.uk.

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

Usage Guidelines4/5

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

The description provides context about the service (keyless, Open Justice Licence) and how it differs from legislation.gov.uk, but does not explicitly specify when to use this tool versus alternatives or when not to use it.

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

gb_search_govukA
Read-onlyIdempotent

Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more.

Maps to the GOV.UK Search API (www.gov.uk/api/search.json - confirmed live 2026-07-07: keyless, Open Government Licence v3.0). One upstream aggregating many institutions; filter with document_type. Legally weighty types with live-verified totals (2026-07-07): employment_tribunal_decision (132,162), hmrc_manual_section (85,315), residential_property_tribunal_decision (17,088), employment_appeal_tribunal_decision (2,571), cma_case (2,565), utaac_decision (2,031), tax_tribunal_decision (1,414), asylum_support_decision (101).

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNomax items to return (1..100).
queryNofull-text search terms.
startNoresult offset for pagination (0-based).
to_dateNoISO 8601 date (YYYY-MM-DD), inclusive. Same server-side filter.
from_dateNoISO 8601 date (YYYY-MM-DD), inclusive - passed server-side via ``filter_public_timestamp`` (unlike Find Case Law, GOV.UK supports this).
organisationNoGOV.UK organisation slug, e.g. ``"competition-and-markets-authority"``.
document_typeNoGOV.UK ``content_store_document_type`` slug (see above).

Output Schema

ParametersJSON Schema
NameRequiredDescription
itemsNo
totalYes
query_echoNo
dataset_noteNo

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly and idempotent annotations, the description discloses that the API is keyless, under the Open Government Licence v3.0, and confirmed live as of 2026-07-07. It also provides live-verified totals for legally weighty document types, adding concrete behavioral context about the upstream data source and filtering behavior.

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?

The description is front-loaded with the core purpose, then adds useful API mapping and document type details. The long list of type counts is valuable but somewhat verbose, so it earns a strong score rather than a perfect one.

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

Completeness5/5

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

Annotations cover safety and idempotency, the schema covers all parameters, and an output schema exists, so the description only needs to add real-world context. It provides the exact endpoint, license, live verification date, and document type options, making it complete for agent selection and invocation.

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

Parameters4/5

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

The schema already documents all 7 parameters with descriptions (100% coverage). The main description adds a curated list of valid document_type slugs with raw counts, directly enriching the document_type parameter beyond the schema's "see above" note. Other parameters are not further elaborated, so it stays slightly above baseline.

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

Purpose5/5

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

The description opens with "Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more," specifying the verb and resource clearly. It distinguishes itself from siblings like gb_search_case_law by naming the GOV.UK API and listing concrete document types, making the tool's purpose unambiguous.

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

Usage Guidelines4/5

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

The description clearly implies when to use this tool by listing supported content types and noting it maps to the GOV.UK Search API. However, it does not explicitly state when not to use it or mention alternative tools like gb_search_case_law, so it provides context but no exclusions.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev0.5.3
    • Addedgb_coverage
  2. 5 tool updatesv0.4.3
    • Addedgb_get_act
    • Addedgb_get_govuk_content
    • Addedgb_recent_legislation
    • Addedgb_search
    • Addedgb_search_govuk
  3. 5 tool updatesv0.4.2
    • Removedgb_get_act
    • Removedgb_get_govuk_content
    • Removedgb_recent_legislation
    • Removedgb_search
    • Removedgb_search_govuk
  4. 8 tool updatesv0.3.0
    • First observedgb_get_act
    • First observedgb_get_case
    • First observedgb_get_govuk_content
    • First observedgb_get_text
    • First observedgb_recent_legislation
    • First observedgb_search
    • First observedgb_search_case_law
    • First observedgb_search_govuk

TDQS

A4/5.0
Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/gb-eli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server