Skip to main content
Glama

Get Judgment Paragraph Index

judgment_get_index
Read-onlyIdempotent

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": "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 changed
    • 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. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered elsewhere. The description adds genuine behavioral context beyond that: the result is an index of pointers with short previews rather than full text, and the call sits between a search step and a paragraph-fetch step. It does not discuss failure modes for a bad slug or empty results, which keeps it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short paragraph blocks, front-loaded with the triggering condition, then the prerequisite and the two follow-on paths. Every sentence carries routing or workflow information; there is no restatement of the title or padding.

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 explained, and annotations cover the safety profile. Given a simple one-parameter read tool, the description supplies the full workflow context an agent needs: how to get the slug, what the output is good for, and which sibling to use for full text or content search.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the single slug parameter is already fully documented with pattern, length bounds and examples, which sets a baseline of 3. The description adds provenance the schema cannot: the slug is expected to come from case_law_search, which tells the agent how to satisfy the required argument rather than guessing a path.

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?

The description states precisely what the tool returns: a paragraph navigation index containing an eId plus a preview line for every paragraph of a judgment. It is framed around a concrete input (a judgment slug) and is clearly distinguishable from siblings that return full paragraph text or perform 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 when-to-use condition (you have a slug and want the index), an explicit prerequisite (call case_law_search first to obtain the slug), and explicit alternatives for the two adjacent needs (judgment_get_paragraph for full text, case_law_grep_judgment for content search). Nothing about routing is left to inference.

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.