Skip to main content
Glama

Get Judgment Paragraph

judgment_get_paragraph
Read-onlyIdempotent

USE THIS TOOL WHEN you have a judgment slug + LegalDocML eId and want that paragraph's full text.

Call judgment_get_index FIRST to discover available eIds (or use case_law_grep_judgment to locate paragraphs by content). Returns the paragraph XML content (400–1,700 tokens typical).

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>",
      "eId": "<eId>"
    },
    "name": "judgment_get_paragraph"
  }
}

Input Schema

NameRequiredDescriptionDefault
eIdYesParagraph eId from judgment_get_index, e.g. 'para_12'. Numeric strings like '12' are accepted and normalized to 'para_12'. Letters, digits, '_', '-' and '.' only.
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. Changed4 schema fields changed
    • changedInput schema / properties / eId / description
      Previous value: -"Paragraph eId from judgment_get_index, e.g. 'para_12'. Numeric strings like '12' are accepted and normalized to 'para_12'."New value: +"Paragraph eId from judgment_get_index, e.g. 'para_12'. Numeric strings like '12' are accepted and normalized to 'para_12'. Letters, digits, '_', '-' and '.' only."
    • addedInput schema / properties / eId / pattern
      Added value: +"^\\s*[A-Za-z0-9_.\\-]+\\s*$"
    • 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. Changed1 schema field changed
    • changedInput schema / properties / eId / description
      Previous value: -"Paragraph eId from judgment_get_index, e.g. 'para_12'"New value: +"Paragraph eId from judgment_get_index, e.g. 'para_12'. Numeric strings like '12' are accepted and normalized to 'para_12'."
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds genuinely non-structured behavior: the return is paragraph XML content and a typical size of 400–1,700 tokens, which lets an agent budget context before calling. It stops short of describing error behavior for bad eIds or truncation limits.

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?

Three short sentences, trigger condition front-loaded, prerequisite ordering before the return note. Every sentence carries information an agent needs; no restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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; with 100% schema coverage the parameters are fully documented. The only mild gap is operational edge cases (invalid or stale eIds, very large paragraphs), which is minor for a two-parameter read tool.

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%: the eId field already documents the 'para_12' example, numeric normalization, and the allowed character set; the slug field already documents format and that it comes from case_law_search. The description adds only the labels 'judgment slug' and 'LegalDocML eId', so the schema is doing the heavy lifting and 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 ('want that paragraph's full text') plus the exact preconditions (judgment slug + LegalDocML eId). It is clearly separable from judgment_get_index and case_law_grep_judgment, which are named as different steps in the same workflow.

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 'USE THIS TOOL WHEN' trigger, then names two concrete alternatives for getting here (judgment_get_index to discover eIds, case_law_grep_judgment to find paragraphs by content) and prescribes ordering ('Call judgment_get_index FIRST'). Nothing about when to choose this versus a sibling 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.