legal-doc-analyzer

v1.1.4
io.github.vpatser1/legal-doc-analyzer Checked 3 days ago Published 4 months ago

Contract analysis, risk assessment, version diffs, compliance checks (GDPR, CCPA, SOC2)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_contract

Analyzes a contract or legal document. Identifies key parties, contract type (NDA, SaaS, employment, etc.), important dates (effective, termination, renewal), key obligations per party, liability clauses and limits, termination conditions, and governing law/jurisdiction. Returns a structured summary.

ParameterTypeDescription
document_text *stringThe full text of the contract or legal document to analyze.
document_typestringType of document. If omitted, the type is auto-detected from the content.

find_risks

Flags risks in a legal document: one-sided clauses, unlimited liability exposure, auto-renewal traps, broad non-compete clauses, vague/ambiguous language, missing standard protections (limitation of liability, indemnification caps), and IP assignment concerns. Returns flagged risks with severity ratings, excerpts, recommendations, and a risk score from 0 (minimal) to 100 (critical).

ParameterTypeDescription
document_text *stringThe full text of the legal document to assess for risks.

compare_versions

Compares two versions of a legal document. Identifies all changes (added, removed, modified clauses), highlights materially significant changes, flags changes that increase risk, and provides a side-by-side diff summary.

ParameterTypeDescription
new_version *stringThe text of the revised / newer version of the document.
old_version *stringThe text of the original / earlier version of the document.
labelsobjectOptional labels for the two versions.

generate_summary

Generates a plain-English summary of a legal document readable by non-lawyers. Includes a key terms table, action items / obligations timeline, and a one-page executive brief.

ParameterTypeDescription
document_text *stringThe full text of the legal document to summarize.

check_compliance

Checks a legal document against compliance frameworks (GDPR, CCPA, SOC2, HIPAA). Checks for required clauses, identifies missing provisions, suggests additional language needed, and returns a compliance score per framework.

ParameterTypeDescription
document_text *stringThe full text of the legal document to check.
frameworksarrayCompliance frameworks to check against. Defaults to all frameworks if omitted.