Skip to main content
Glama
UK Business Tools - Ledgerhall

UK Business Tools - Ledgerhall

Get Judgment Paragraph Index

law_judgment_get_index
Read-onlyIdempotent

Get a paragraph navigation index for a UK court judgment from its slug, returning eIds and preview lines so you can locate and read full paragraph text.

Instructions

USE THIS TOOL WHEN you have a judgment slug and want the paragraph navigation index (eId + preview line for every paragraph).

Call case_law_search FIRST to get the slug. AFTER calling, pass an eId from the returned list into judgment_get_paragraph to read that paragraph's full text, or use case_law_grep_judgment for content search across all paragraphs.

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": {
      "slug": "<slug>"
    },
    "name": "law_judgment_get_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesJudgment slug from case_law_search, e.g. 'uksc/2024/12' or 'ewca/civ/2023/450' — path segments of letters, digits, '-' or '_', no host or 'https://'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.1
    • changedInput schema / properties / slug / description
      Previous value: -"Judgment slug, e.g. 'uksc/2024/12'"New value: +"Judgment slug from case_law_search, e.g. 'uksc/2024/12' or 'ewca/civ/2023/450' — path segments of letters, digits, '-' or '_', no host or 'https://'."
    • addedInput schema / properties / slug / pattern
      Added value: +"^/?[A-Za-z0-9_\\-]+(/[A-Za-z0-9_\\-]+)+/?$"
  2. First observedv0.2.1

TDQS

A4.5/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 the safety profile is covered. The description adds genuine workflow context beyond that: the operation depends on a prior search call and produces a list consumed by a downstream paragraph-read call, which is not encoded in annotations. It does not discuss failure modes for invalid slugs, but the schema pattern covers format.

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 in caps, followed by a short prerequisite-then-follow-up chain. No redundant restatement of the title or schema, and every sentence carries actionable routing 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?

One parameter, full schema coverage, an output schema, and complete annotations mean little burden remains. The description still supplies the pipeline context (search → index → paragraph/grep) an agent needs to sequence calls correctly, so nothing material 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 description coverage is 100%, and the slug parameter's pattern, length bounds and examples ('uksc/2024/12') are fully documented in the schema itself. The description only restates that the slug comes from case_law_search, adding provenance but no format detail beyond the schema. 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 and resource: retrieving the paragraph navigation index for a judgment, with the exact contents spelled out ('eId + preview line for every paragraph'). It is clearly distinguishable from law_judgment_get_paragraph (full text of one paragraph) and law_case_law_grep_judgment (content search).

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?

Explicit trigger ('USE THIS TOOL WHEN you have a judgment slug'), an explicit prerequisite (call case_law_search FIRST to get the slug), and explicit follow-on routing to law_judgment_get_paragraph or law_case_law_grep_judgment depending on intent. When-to-use, dependency ordering, and alternatives are all covered.

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