Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GB_ELI_BASE_URLNoBase URL of the legislation.gov.uk APIhttps://www.legislation.gov.uk
GB_ELI_AUDIT_DIRNoDirectory for audit logs~/.matematic/audit
GB_ELI_CACHE_DIRNoDirectory for caching responses~/.matematic/cache/gb-eli

Capabilities

Features and capabilities supported by this server

CapabilityDetails
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

NameDescription
gb_search

Search UK legislation on legislation.gov.uk.

Maps to the official Atom search feed (/all/data.feed or /{doc_type}/data.feed, optionally with ?text=...&year=...&page=...). Each item gets eli_uri, human_readable_citation, source_url (per Art. 4 CONSTITUTION).

gb_get_act

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 (/data.{format}) - xml (the site's own legislation.xsd schema), html, akn (Akoma Ntoso), rdf, pdf, or csv.

gb_recent_legislation

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.

gb_search_case_lawA

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).

gb_get_caseA

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

gb_search_govuk

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).

gb_get_govuk_content

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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