Skip to main content
Glama

Get Judgment Header

judgment_get_header
Read-onlyIdempotent

USE THIS TOOL WHEN you have a judgment slug and need metadata (parties, judges, neutral citation, court, dates).

Call case_law_search FIRST to get the slug. AFTER calling, use judgment_get_index to discover paragraphs, then judgment_get_paragraph to read specific ones. Authoritative source for UK judgment metadata.

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_header"
  }
}

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' or 'ewca/civ/2023/450'"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.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, and non-destructive behavior, so safety is covered. The description adds useful context beyond annotations: it identifies the tool as the authoritative source for UK judgment metadata and clarifies scope by pointing to other tools for paragraph-level content. It does not cover error behavior for invalid or missing slugs, 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.

Conciseness5/5

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

Front-loads the when-to-use trigger, then gives prerequisite and follow-on workflow in a logical sequence, and closes with a scope statement. Every sentence carries actionable information with no filler.

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?

With an output schema present, return values need not be explained, and the description still names the metadata categories. The before/after workflow and authoritative-source note make it sufficient for correct invocation. The only gap is that it does not describe behavior for invalid or unresolved slugs.

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 single slug parameter is already thoroughly documented in the schema, including format and examples. The description repeats the provenance ('Call case_law_search FIRST') but adds no new parameter-level detail beyond 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 and resource (get judgment header metadata) and enumerates the returned fields (parties, judges, neutral citation, court, dates). It explicitly distinguishes itself from siblings by positioning case_law_search as the slug source and judgment_get_index/judgment_get_paragraph as the follow-on tools.

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 trigger: 'when you have a judgment slug and need metadata.' Also gives prerequisite (Call case_law_search FIRST to get the slug) and names the alternative tools for paragraph discovery and reading. No inference is required.

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.