Skip to main content
Glama
paulieb89

UK Legal Research MCP Server

Parse OSCOLA Citations

citations_parse
Read-only

Extract and classify OSCOLA legal citations from text, identifying cases, legislation, and regulations, then resolve them to official URLs.

Instructions

Extract and classify all OSCOLA legal citations from free text.

Identifies: neutral citations ([2024] UKSC 12), law reports ([2024] 1 WLR 100), legislation sections (s.47 Companies Act 2006), SIs (SI 2018/1234), and retained EU law (Regulation (EU) 2016/679).

Ambiguous citations (e.g. bare [2024] EWHC without division) are optionally disambiguated via LLM sampling. Resolves citations to TNA / legislation.gov.uk URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesCitationsParseInput with text (max 50,000 chars) and disambiguate flag.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
citationsYesAll successfully parsed citations (confidence >= 0.7)
ambiguousYesCitations with confidence < 0.7; may have been partially disambiguated via sampling
text_lengthYesCharacter length of the input text
parse_duration_msYesTime taken to parse, in milliseconds
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, establishing this as a safe read operation. The description adds valuable behavioral context beyond annotations: it explains the optional LLM disambiguation process for ambiguous citations, mentions resolution to TNA/legislation.gov.uk URLs, and specifies the 50,000 character limit. However, it doesn't cover rate limits, authentication needs, or error conditions.

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 description is efficiently structured with zero wasted sentences. The first sentence states the core purpose, followed by specific citation types handled, then behavioral details about disambiguation and URL resolution. Each sentence adds distinct value, and the information is appropriately front-loaded with the most important details first.

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 tool's moderate complexity, rich annotations (readOnlyHint, destructiveHint), 100% schema coverage, and the presence of an output schema (which means return values don't need description), the description is complete enough. It covers purpose, supported citation types, behavioral traits like disambiguation and URL resolution, and parameter context - addressing all essential aspects for a parsing 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?

With 100% schema description coverage, the schema already fully documents both parameters (text with max length and supported citation types, disambiguate flag with default). The description adds minimal value beyond the schema by listing the same citation types and mentioning LLM sampling for disambiguation, but doesn't provide additional syntax, format details, or usage examples.

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 verb 'extract and classify' with the specific resource 'OSCOLA legal citations from free text'. It distinguishes from sibling tools like citations_network and citations_resolve by focusing on parsing rather than network analysis or resolution, and lists specific citation types it handles (neutral citations, law reports, legislation sections, SIs, retained EU law).

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

Usage Guidelines3/5

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

The description implies usage context by specifying 'free text containing OSCOLA citations' and listing supported citation types, but doesn't explicitly state when to use this tool versus alternatives like citations_resolve or case_law_search. It mentions optional disambiguation via LLM sampling, which provides some guidance on when that feature might be useful, but lacks explicit 'when-not' scenarios or clear alternatives.

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/uk-legal-mcp'

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