legal_clause_extractor
ActiveTool of gapup-mcp
Structured extraction of clauses, obligations and deadlines from legal documents (SaaS contracts, NDAs, employment agreements, loan agreements, leases, M&A deals, IP licences). Complements contract_risk_scanner with granular per-clause output. ICP: legal ops, M&A lawyers, paralegals, contract managers, compliance officers. Capabilities: • Auto-detects document type (7 types) and language (EN/FR/DE/ES/PT) • Extracts parties with roles (buyer, seller, licensor, employee, etc.) • Splits document into sections and classifies 16+ clause types • Per-clause: 20 obligation patterns (EN/FR/DE), 10 deadline patterns, 18 risk detectors • Document-level: red flags (liability cap, auto-renewal, IP overreach, etc.), missing clauses per doc type • Global deadline calendar with P0/P1/P2 severity • Cross-reference map between sections • Cache: 7 days (legal docs stable once provided) 100% pure compute — no external fetch required. Accepts 10k–100k char documents.
Parameters schema
{
"type": "object",
"required": [
"document_text"
],
"properties": {
"lang": {
"type": "string",
"description": "Optional. Language hint (e.g. 'en', 'fr', 'de'). Defaults to auto-detection."
},
"async": {
"type": "boolean",
"description": "If true, returns a job_id immediately (<200ms) instead of waiting for the result. Poll the result with job_result(job_id). Use for slow tools to avoid client timeouts."
},
"document_text": {
"type": "string",
"maxLength": 500000,
"minLength": 100,
"description": "Full text of the legal document (10k–100k chars typical). Plain text or lightly HTML-formatted. EN/FR/DE/ES/PT supported."
},
"document_type": {
"enum": [
"saas_contract",
"employment",
"nda",
"loan_agreement",
"lease",
"merger_agreement",
"licence_ip",
"other",
"auto"
],
"type": "string",
"description": "Optional. Document type hint. Defaults to auto-detection. Use \"auto\" or omit to let the tool detect from content."
},
"target_clauses": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional. Filter extraction to specific clause types. E.g. [\"term\", \"termination\", \"liability\", \"ip\", \"confidentiality\", \"governing_law\", \"indemnification\"]. If omitted or empty, all clauses are extracted."
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
gapup-mcp
https://github.com/getgapup/gapup-mcp-public
2/7 registries