Skip to main content
Glama

Get Case Citation Network

citations_network
Read-onlyIdempotent

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": "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 changed
    • 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. Changed3 schema fields changed
    • addedInput schema / properties / case_uri
      Added value: +{
      +  "description": "TNA 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.",
      +  "minLength": 5,
      +  "type": "string"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "CitationsNetworkInput with case_uri (TNA slug, e.g. 'uksc/2024/12').",
      -  "properties": {
      -    "case_uri": {
      -      "description": "TNA 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.",
      -      "minLength": 5,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "case_uri"
      -  ],
      -  "type": "object"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "case_uri"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / params / description
      Added value: +"CitationsNetworkInput with case_uri (TNA slug, e.g. 'uksc/2024/12')."
  4. Changed11 schema fields changed
    • changedOutput schema / description
      Previous value: -"Generic wrapper for non-object return types."New value: +"Citations found within a single judgment, grouped by type.\n\nEach list contains the de-duplicated raw citation text as it appeared\nin the source. To resolve any entry to a URL, pass it through\ncitations_resolve."
    • addedOutput schema / properties / case_uri
      Added value: +{
      +  "description": "The judgment URI that was fetched and parsed",
      +  "type": "string"
      +}
    • addedOutput schema / properties / eu_refs
      Added value: +{
      +  "description": "Retained EU law references, e.g. 'Regulation (EU) 2016/679'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / law_report_refs
      Added value: +{
      +  "description": "Law report citations, e.g. '[2020] 1 WLR 100'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / legislation_refs
      Added value: +{
      +  "description": "Legislation section references, e.g. 's.47 Companies Act 2006'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / neutral_citations
      Added value: +{
      +  "description": "Neutral citations referenced, e.g. '[2020] UKSC 14'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / si_refs
      Added value: +{
      +  "description": "Statutory Instrument references, e.g. 'SI 2018/1234'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / total_citations
      Added value: +{
      +  "description": "Sum of all de-duplicated citations across every bucket",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "case_uri",
      +  "total_citations"
      +]
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world behavior, yet the description adds real context: it fetches judgment XML from TNA (explaining the open-world network call) and that results are grouped by type, deduplicated and sorted. It stops short of stating failure modes (e.g. judgment with no XML) or latency/caching behavior, which keeps it from a 5.

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 trigger condition and then the mechanics and follow-up, so nothing is buried. The all-caps lead-in and the trailing 'useful for' rationale are slightly extra, but each sentence carries distinct information.

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?

For a one-parameter tool with an output schema, this covers the data source, the parsing/grouping behavior, and the downstream workflow. An agent knows what it will get back and what to do next without needing more prose about return values.

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 schema's own description covers the slug format, examples and the warning against the full URL. The description only echoes 'judgment slug' without adding format or selection guidance, so the schema does the heavy lifting — a baseline 3.

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 and resource ('map every citation' a judgment 'makes') and enumerates the scope — cases, legislation, SIs, retained EU law. This clearly separates it from citations_resolve, which handles a single citation rather than the whole network.

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?

Opens with an explicit trigger ('USE THIS TOOL WHEN you have a judgment slug') and gives a named follow-up path ('pass any individual citation through citations_resolve'). The when-to-use and the hand-off to the sibling are both spelled out rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.