Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
redline-counterparty-draftCompare an agreed baseline contract against a counterparty final draft to isolate stealth numeric changes, obligation flips, and Unicode spoofs.
audit-sla-and-msa-risksScan 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

NameDescription
18 Commercial Contract & SLA Risk Signal RulesStructured catalog of the 18 bilingual commercial risk rules checked by scan_contract_risk_signals.
Contract & Policy Unicode Spoofing ReferenceOverview of zero-width, Bidi override, homoglyph, and fullwidth digit spoofing vectors in legal and SLA text.

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues