Skip to main content
Glama
paulieb89

BAILII MCP Server

Get BAILII Judgment Text

bailii_get_judgment
Read-onlyIdempotent

Retrieve a BAILII judgment by document path, optionally extract a specific section (summary, conclusions, held, or full text). Get the needed part without downloading the entire document.

Instructions

Retrieve a BAILII judgment, optionally filtered to a specific section.

Use the path returned by bailii_search. By default returns summary + conclusions (or first 5000 chars if no sections detected). Use section='all' for the complete text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesInput containing: - path (str): BAILII document path - section (str, optional): 'summary', 'conclusions', 'held', 'discussion', 'background', 'all' - max_chars (int, optional): Maximum characters to return (default 5000)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already provide readOnlyHint and idempotentHint. Description adds valuable context: default returns summary+conclusions or first 5000 chars, section='all' for full text, and max_chars limit. No contradiction.

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 sentences: first states purpose, second gives essential usage. No unnecessary words, front-loaded with key 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?

Given the presence of output schema, return values need not be explained. Tool prerequisites, default behavior, and all options are covered. Sufficient for correct invocation.

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% with detailed descriptions. The main description adds pragmatic usage context (e.g., 'Obtain this from bailii_search') and clarifies default behavior, complementing the schema.

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 clearly states the action ('Retrieve') and resource ('BAILII judgment'), with the option to filter by section. It distinguishes from siblings by specifying reliance on path from bailii_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises to 'Use the path returned by bailii_search', setting clear context for when to use. Could further clarify when not to use, but guidance is strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulieb89/bailii-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server