Skip to main content
Glama

uk-legislation-mcp-server

Resolve a legislation citation

uklaw_lookup_citation
Read-onlyIdempotent

Resolve a citation or short title to the canonical legislation.gov.uk item and provision: "Data Protection Act 2018 s. 45", "2018 c. 12", "S.I. 2019/419", "S.S.I. 2020/123", "S.R. 2020/12", "2020 asp 13", "Regulation (EU) 2016/679 art. 28", a legislation.gov.uk URI, or a short title. Returns the item path to pass to uklaw_get_document, and when a provision is given, whether it exists in the current version. A miss or an ambiguous title is a result with found false plus guidance or candidates, not an error. To find legislation by topic or by partial title words rather than a known citation, use uklaw_search_legislation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
citationYesA citation ("2018 c. 12", "S.I. 2019/419 reg. 5", "Regulation (EU) 2016/679 art. 28"), a short title ("Data Protection Act 2018 s. 45(2)(f)"), or a legislation.gov.uk URI. uklaw_list_reference topic citation_formats lists the accepted forms.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemNoCanonical item path, e.g. ukpga/2018/12 — pass to uklaw_get_document; present when found.
typeNoCanonical type code (a Welsh SI cited as uksi comes back as wsi); present when found.
yearNoCalendar year of the item; absent when not known, e.g. a regnal-year item resolved from its path.
errorNoPresent when the call failed. Absent on success.
foundNoTrue when the citation resolved to exactly one item.
titleNoItem title; absent when it could not be fetched within the call.
id_uriNoCanonical identifier URI of the item; present when found.
numberNoItem number within the year; present when found.
parsedNoThe citation as the parser read it.
guidanceNoWhat to do next after a miss, ambiguity, or a check that could not run.
title_cyNoWelsh title, for bilingual items.
made_dateNoDate enacted or made (YYYY-MM-DD); absent when not fetched or not reported.
candidatesNoCandidate items (at most 20) when the citation is ambiguous.
type_labelNoHuman label of the type; present when found.
attributionNoAttribution lines the returned content requires (OGL always; EU and Westlaw credits when applicable).
document_uriNolegislation.gov.uk page for the item; present when found.
provision_uriNoIdentifier URI of that provision, alongside provision_path.
provision_pathNoProvision path the citation named, when it named one and the item was found.
provision_foundNoWhether the provision exists in the current version; absent when the check could not run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.