Assess UK lease tenant break clauses with grounded citations and a measured hallucination rate.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
A self-evaluating MCP server that assesses whether a UK commercial-lease tenant break clause can actually be exercised β and publishes its own measured hallucination rate.
βοΈ Decision-support only β NOT legal advice. Built on a deliberately simplified, non-proprietary ruleset over synthetic data. A qualified solicitor must verify any real decision.
In 2012, a tenant served a valid break notice to walk away from a lease β but on the break date they hadn't paid one quarter's rent that had fallen due a few weeks earlier. The break failed. They were bound to the lease (and its rent) for years. No drama, no bad faith β just one unmet condition precedent that everyone missed until it was too late.
Break clauses are unforgiving like that. Whether a tenant can actually leave turns on a short checklist β notice served in time, notice served correctly, no rent arrears, vacant possession given β and getting any one wrong is catastrophic. It is exactly the kind of task you might hand to an LLM... if you could trust it not to confidently invent the answer.
This project is about earning that trust, and measuring it. It is not a clever parser. It is a reliability harness: every claim is grounded to verbatim source text or it isn't made, genuinely-ambiguous cases are routed to a human instead of guessed, and the whole thing ships with an eval that publishes how often it lies.
NOT_FOUND; it never invents a quote.
A deterministic gate slices the span out of the source, so it can't echo
hallucinated text.AMBIGUOUS β human verify, not a coin-flip. Abstaining honestly is a feature.See report/report.md for the full eval (all four metrics,
per-model comparison, confusion matrix, caught-hallucination examples).
The committed report is the heuristic baseline (it runs with no API key) β and it already tells the core story: the grounding gate drives ungrounded (fabricated) hallucinations to zero, while a non-reasoning baseline still misgrounds and never abstains on the genuinely-ambiguous cases. That gap is exactly what a calibrated LLM is meant to close:
The trust boundary is structural: the deterministic core/ package physically
cannot import the llm/ package (enforced by a test). "The LLM proposes,
deterministic code disposes" is a property of the codebase, not a discipline.
| Tool | What it does |
|---|---|
extract_break_clause | Returns the break clause + its verbatim source span |
check_conditions | The four-condition checklist: each pass / fail / uncertain, with grounded evidence |
find_citation | Exact verbatim supporting text for a claim, or NOT_FOUND |
assess_validity | Orchestrated verdict + calibration note + mandatory human-verify gates |
No ANTHROPIC_API_KEY is required for any of the above β the eval falls back to the
heuristic baseline and is fully reproducible. Set the key (and --record) to
measure the real Claude models.
The key is only needed for live LLM extraction (the eval --record step and the
server's real mode). Everything else runs without one.
.env is git-ignored and the cassettes redact the
x-api-key header..env file:
env block (below).Claude Desktop β add to claude_desktop_config.json (use the absolute path to
your clone so it runs from the project):
Claude Code β one command:
Without a key the server still runs and responds β it uses the heuristic baseline and says so. Every tool response carries the decision-support disclaimer.
temperature=0 is not a determinism guarantee from the API, so reproducibility
comes from recorded cassettes (VCR.py). scripts/run_eval.py --record records one
cassette set per model with the x-api-key header redacted; re-running without
--record replays them with no key in seconds. See
eval/cassettes/README.md.
The metric definitions are pre-registered in
docs/METHODOLOGY.md before any model is run, so the
headline number can't be defined after the fact to look good. The hallucination
rate counts misgrounding and overconfidence β not just fabrication β precisely
because a grounding gate makes fabrication trivially zero. The scorer uses no LLM
judge; it is validated against a gold oracle and deliberately-broken systems in
tests/test_harness.py.
Tenant break clauses only Β· four conditions precedent Β· synthetic/public data only Β· decision-support, not legal advice. Other lease provisions, landlord breaks, real client data, and a production engine are explicitly out of scope.
Built as a reliability-engineering artifact. The eval is the point.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/uk-break-clause-analyzer)<a href="https://allmcps.com/mcp/uk-break-clause-analyzer"><img src="https://allmcps.com/api/badge/uk-break-clause-analyzer?style=directory" alt="UK Break Clause Analyzer on AllMCPs" /></a>