mcp-legal-doc-analyzer
v1.0.1Domain-specific MCP tooling for legal document workflows
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_clauses
Extract and label key clauses from a contract document (PDF, DOCX, or TXT). Returns a structured list of clause types (e.g. termination, liability, confidentiality, governing_law, payment_terms, intellectual_property, dispute_resolution, warranty) with confidence scores. Low-confidence results are flagged for human review.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt |
flag_risks
Analyze a contract against a compliance template and return a severity-ranked list of risk findings. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement. If no template is specified, the NDA template is used.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt |
template | string | Name of the compliance template to use. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement. Use list_templates to see all… |
summarize_terms
Generate a plain-English, bullet-point summary of the key provisions in a contract document. Covers clause types including termination, liability, confidentiality, governing_law, payment_terms, intellectual_property, dispute_resolution, and warranty.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt |
list_templates
List all available compliance templates that can be used with flag_risks, check_compliance, and export_analysis_report. Bundled templates include: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.
check_compliance
Run a structured checklist validation of a contract against a compliance template. For each rule, returns pass/fail/not_applicable with a finding description. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt |
template | string | Name of the compliance template to use. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement. |
compare_versions
Compare two versions of a contract document at the clause level. Shows clauses that were added, removed, changed, or unchanged between version A and version B. Supports .pdf, .docx, and .txt files.
| Parameter | Type | Description |
|---|---|---|
file_path_a * | string | Absolute path (or ~/... path) to version A of the contract. Supported formats: .pdf, .docx, .txt |
file_path_b * | string | Absolute path (or ~/... path) to version B of the contract. Supported formats: .pdf, .docx, .txt |
export_analysis_report
Generate a single-file HTML analysis report for a contract. Includes document metadata, extracted clauses with confidence scores, and an optional risk findings table when a template is provided. The HTML is self-contained with inline CSS and is suitable for printing. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt |
template | string | Optional compliance template name to include risk findings in the report. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreeme… |
export_audit_log
Export the analysis audit log. Supports optional date-range filtering and JSON or CSV output format.
| Parameter | Type | Description |
|---|---|---|
format | string | Output format: json (default) or csv |
from_date | string | ISO 8601 start date (inclusive). E.g. 2024-01-01T00:00:00Z |
to_date | string | ISO 8601 end date (inclusive). E.g. 2024-12-31T23:59:59Z |
bulk_analyze
Analyze a portfolio of contract files in batch. Processes each file sequentially and returns per-file clause extraction results plus an aggregate summary.
| Parameter | Type | Description |
|---|---|---|
file_paths * | array | Array of absolute file paths to analyze. |
template_name * | string | Compliance template to apply. Examples: NDA, Employment Agreement, SaaS Customer Agreement. |
output_format | string | Output format: json (default) or csv |