Skip to main content
Glama
UK Business Tools - Ledgerhall

UK Business Tools - Ledgerhall

Resolve Single OSCOLA Citation

law_citations_resolve
Read-onlyIdempotent

Parse an OSCOLA citation and confirm it points to a real UK document, returning parsed fields plus a resolved URL or an unverified status.

Instructions

USE THIS TOOL BEFORE constructing an OSCOLA citation string from known fields, OR to confirm a citation points at a real document.

Returns parsed fields plus resolved_url. Neutral citations are checked live against TNA, SIs against legislation.gov.uk: verified=true means the document exists; if the source confirms it does not, verified=false and confidence=0.0 — do NOT format or quote that citation. Act sections, law reports and retained EU law cannot be checked and come back verified=false (Acts with a search_url, not a resolved_url): present them as unverified.

A transient error means the check could not run (timeout, 429, 5xx) — NOT that the document is absent; retry, or proceed without claiming verification.

AFTER calling, if this tool raises or returns no resolved_url, do NOT manufacture a citation — surface the failure and ask the user for the source URL.

Authoritative source for UK legal-citation resolution.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "citation": "<citation>"
    },
    "name": "law_citations_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationYesA single OSCOLA citation to parse and resolve. E.g. '[2024] UKSC 12', 'SI 2018/1234', 's.47 Companies Act 2006'

Output Schema

NameRequiredDescriptionDefault
rawYesOriginal citation text as found in the source
pageNoStarting page in the law report
typeYesClassification of the citation type
yearNoYear component of the citation
courtNoCourt code: UKSC, UKPC, EWCA Civ, EWCA Crim, EWHC (KB), EWHC (Ch), EWHC (Comm), EWHC (Fam), EWHC (Pat), EWHC (IPEC), UKUT (IAC), UKUT (TCC), UKUT (AAC), UKUT (LC), EAT, UKFTT (TC), UKFTT (GRC)
numberNoJudgment number within the year
volumeNoReport volume number (for law reports)
sectionNoSection number referenced
si_yearNoSI year (for SI YYYY/NNN citations)
verifiedNoTrue only when this server confirmed the document exists at resolved_url against the authoritative source (TNA for neutral citations, legislation.gov.uk for SIs). Always false from citations_parse, and for citation types this server cannot check (Act sections, law reports, retained EU law).
si_numberNoSI number
confidenceYesParse confidence 0.0–1.0: how sure the parser is about the citation's shape. Citations below 0.7 are ambiguous and may have been sent for LLM disambiguation. 0.0 from citations_resolve means the source confirmed the document does not exist. Existence is reported by `verified`, not by a high confidence.
search_urlNoFor Act sections: a legislation.gov.uk title-search URL. It is a search, not a link to the Act, and does not confirm the Act exists.
resolved_urlNoCanonical TNA Find Case Law or legislation.gov.uk URL for the cited document, constructed from the citation. Constructing a URL does not prove the document exists: check `verified`. Null when no canonical URL can be built (ambiguous court, Act sections — see search_url).
report_seriesNoLaw report series abbreviation: WLR, AC, QB, KB, Ch, All ER, EWCA Civ, etc.
legislation_titleNoTitle of legislation (for s.NN Act YYYY citations)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.1
    • changedOutput schema / properties / confidence / description
      Previous value: -"Parse confidence 0.0–1.0. Citations below 0.7 are ambiguous and may have been sent for LLM disambiguation."New value: +"Parse confidence 0.0–1.0: how sure the parser is about the citation's shape. Citations below 0.7 are ambiguous and may have been sent for LLM disambiguation. 0.0 from citations_resolve means the source confirmed the document does not exist. Existence is reported by `verified`, not by a high confidence."
    • changedOutput schema / properties / resolved_url / description
      Previous value: -"TNA Find Case Law or legislation.gov.uk URL if successfully resolved"New value: +"Canonical TNA Find Case Law or legislation.gov.uk URL for the cited document, constructed from the citation. Constructing a URL does not prove the document exists: check `verified`. Null when no canonical URL can be built (ambiguous court, Act sections — see search_url)."
    • addedOutput schema / properties / search_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "For Act sections: a legislation.gov.uk title-search URL. It is a search, not a link to the Act, and does not confirm the Act exists."
      +}
    • addedOutput schema / properties / verified
      Added value: +{
      +  "default": false,
      +  "description": "True only when this server confirmed the document exists at resolved_url against the authoritative source (TNA for neutral citations, legislation.gov.uk for SIs). Always false from citations_parse, and for citation types this server cannot check (Act sections, law reports, retained EU law).",
      +  "type": "boolean"
      +}
  2. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description goes much further, explaining that neutral citations are checked live against TNA and SIs against legislation.gov.uk, what verified=true/false and confidence=0.0 mean, and which citation classes (Acts, law reports, retained EU law) can never be verified and instead return a search_url. It also distinguishes transient errors (timeout, 429, 5xx) from genuine absence — behavior an agent cannot infer from annotations.

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?

Front-loaded with the primary directive in caps, then organized into return semantics, unverifiable categories, transient-error handling, and post-call failure handling — each block is load-bearing. Dense but not padded; the all-caps emphasis and em-dash asides are slightly noisy but aid scanning.

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?

Given an output schema exists, the description need not document return values, yet it explains verified, confidence, resolved_url, and search_url well enough to interpret results correctly. It also covers the network-dependent failure modes an open-world tool needs, so nothing an agent requires to call and interpret this tool is missing.

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?

There is only one parameter and schema description coverage is 100%, with examples already embedded in the schema, so the description adds little parameter-level meaning beyond reiterating 'single citation' and the resolve behavior. Baseline 3 applies since the schema does the heavy lifting.

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?

Names a specific verb and resource (resolve a single OSCOLA citation) and states two concrete purposes: pre-checking before formatting, and confirming the citation points at a real document. It also declares the return shape (parsed fields plus resolved_url), which lets an agent distinguish it from the sibling formatter/parser tools.

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

Usage Guidelines5/5

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

Gives explicit ordering guidance ('USE THIS TOOL BEFORE constructing an OSCOLA citation string from known fields'), an alternative condition (confirm the citation is real), and a post-call rule (if it raises or returns no resolved_url, surface the failure and ask the user for a source URL rather than inventing one). Failure and retry paths are spelled out.

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

Deploy Server

Other Tools