Skip to main content
Glama
UK Business Tools - Ledgerhall

UK Business Tools - Ledgerhall

Get Case Citation Network

law_citations_network
Read-onlyIdempotent

Map every citation in a UK judgment from its slug, parsing OSCOLA references into grouped, deduplicated case, legislation, SI and retained EU law lists for authority-network analysis.

Instructions

USE THIS TOOL WHEN you have a judgment slug and want to map every citation it makes — cases cited, legislation referenced, SIs, retained EU law.

Fetches the judgment XML from TNA and parses all OSCOLA citations within. Returns citations grouped by type, deduplicated and sorted. AFTER calling, pass any individual citation through citations_resolve to confirm it resolves and to retrieve its canonical URL.

Useful for authority-network analysis (what did this judgment rely on?) and for surfacing the legislative landscape a case sits inside.

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": {
      "case_uri": "<case_uri>"
    },
    "name": "law_citations_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
case_uriYesTNA judgment URI slug, e.g. 'uksc/2024/12' or 'ewca/civ/2023/450'. Use the 'uri' field from case_law_search results — not the full URL. Do not include the 'https://caselaw.nationalarchives.gov.uk/' prefix.

Output Schema

NameRequiredDescriptionDefault
eu_refsNoRetained EU law references, e.g. 'Regulation (EU) 2016/679'
si_refsNoStatutory Instrument references, e.g. 'SI 2018/1234'
case_uriYesThe judgment URI that was fetched and parsed
attributionNoOpen Justice Licence attribution for the judgment these citations were extracted from.
law_report_refsNoLaw report citations, e.g. '[2020] 1 WLR 100'
total_citationsYesSum of all de-duplicated citations across every bucket
legislation_refsNoLegislation section references, e.g. 's.47 Companies Act 2006'
neutral_citationsNoNeutral citations referenced, e.g. '[2020] UKSC 14'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "description": "Open Justice Licence attribution for the judgment these citations were extracted from.",
      +  "properties": {
      +    "licence_url": {
      +      "default": "https://caselaw.nationalarchives.gov.uk/open-justice-licence/version/2",
      +      "description": "The Open Justice Licence v2.0.",
      +      "type": "string"
      +    },
      +    "statement": {
      +      "default": "Contains information licensed under the Open Justice - Licence v2.0.",
      +      "description": "Attribution required by the Open Justice Licence. Include it, verbatim, wherever this judgment content is shown or reused.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv0.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds meaningful behavior beyond that: it fetches judgment XML from TNA (an external dependency), parses OSCOLA citations out of it, and returns them grouped by type, deduplicated and sorted — useful shape information an agent needs before calling.

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 trigger condition is front-loaded, the mechanics follow, and the follow-up action (citations_resolve) is last — a natural reading order. Every sentence supplies distinct information: trigger, mechanics, output shape, next step, use cases.

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?

An output schema exists, so return values need not be fully spelled out, yet the description still tells the agent citations arrive grouped by type. With annotations covering safety and only one well-documented parameter, nothing an agent needs to call this correctly 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?

Schema coverage is 100% and the case_uri property already documents the slug format, examples, and the warning not to pass a full URL. The description adds only the phrase 'judgment slug', which is consistent but no richer than the schema, so the baseline 3 applies.

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?

States a specific verb ('map every citation') against a specific resource (the citations a judgment makes), and enumerates the citation kinds covered (cases, legislation, SIs, retained EU law). This clearly separates it from sibling tools like citations_parse and citations_resolve, which operate on individual citations rather than a whole judgment.

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 opening clause gives an explicit trigger ('when you have a judgment slug and want to map every citation it makes'), and the closing paragraph gives valid use cases (authority-network analysis, legislative landscape). It also routes the agent forward to citations_resolve for verification. It lacks an explicit 'do not use when' exclusion, so it falls short of a 5.

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