clausediff-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use clausediff-mcp to extract local/Base64 .docx contracts offline (including hidden <w:delText> tracked deletions), run Myers O(ND) paragraph & inline CJK/token diffs to catch stealth numeric/date/obligation-flip mutations, detect zero-width/homoglyph Unicode spoofs, and scan 18 commercial risk signal patterns.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| diff_contract_versionsA | Runs Myers O(ND) paragraph alignment and inline token/CJK diff between baseline and counterparty contract drafts, isolating stealth numeric, percentage, date, obligation-flip, and hidden-Unicode mutations. |
| extract_docx_text_offlineA | Extracts ordered clause paragraphs and hidden <w:delText> Word Track-Changes deletions from a local .docx file path or Base64-encoded .docx archive with zero cloud calls. |
| detect_unicode_spoofsA | Scans contract, policy, or SLA text for invisible zero-width and Bidi characters (U+200B..U+200F, U+202A..U+202E, U+FEFF), Cyrillic/Greek homoglyphs, and fullwidth/halfwidth digit spoofing. |
| scan_contract_risk_signalsA | Flags unbalanced commercial risk patterns (back-to-back payment, uncapped indemnity, missing acceptance timeout, auto-renewal traps, background IP sweeps) across 18 bilingual rules with balanced alternatives. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| redline-counterparty-draft | Compare an agreed baseline contract against a counterparty final draft to isolate stealth numeric changes, obligation flips, and Unicode spoofs. |
| audit-sla-and-msa-risks | Scan an MSA, SOW, or SLA draft for unbalanced commercial risk signals and hidden Unicode characters before legal sign-off. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 18 Commercial Contract & SLA Risk Signal Rules | Structured catalog of the 18 bilingual commercial risk rules checked by scan_contract_risk_signals. |
| Contract & Policy Unicode Spoofing Reference | Overview of zero-width, Bidi override, homoglyph, and fullwidth digit spoofing vectors in legal and SLA text. |
TDQS
Scored across 4 tools
Each tool targets a distinct stage: ingestion (extract_docx_text_offline), comparison (diff_contract_versions), character-level scanning (detect_unicode_spoofs), and clause-level risk scanning (scan_contract_risk_signals). The one soft boundary is hidden-Unicode detection, which diff_contract_versions also claims to isolate, potentially overlapping with detect_unicode_spoofs.
All names are snake_case verb-first patterns (diff_, extract_, detect_, scan_), which is predictable. extract_docx_text_offline is the outlier, appending a format and an 'offline' qualifier not seen elsewhere, but overall readability and consistency are strong.
Four tools is within the well-scoped 3-15 range for a focused contract-diff pipeline, and each tool covers a distinct, substantial capability rather than being redundant. Nothing feels padded or arbitrarily split.
The surface covers docx ingestion, version diffing, Unicode spoof detection, and risk flagging, but lacks ingestion for PDF/other common contract formats and any structured report/redline export, which are meaningful gaps for a contract-diff domain. Agents can partially work around by consuming raw diff output, but key lifecycle steps are missing.