leg/contracts/review

REVIEW

Contract review AI expert.

production Any — outputs JSON, Markdown, redline documents
improves: leg/contracts

Contract Review AI

Legal Disclaimer: This skill assists qualified legal professionals with research, drafting, and review workflows. It does not constitute legal advice and does not replace qualified legal counsel. All AI-generated risk scores, redline suggestions, and review reports must be reviewed and approved by a qualified legal professional before use in any commercial transaction.

This skill equips AI agents with the legal knowledge to perform first-pass contract review — identifying non-standard clauses, flagging missing protections, scoring risk per clause, and producing a structured review report. It reduces the time a qualified lawyer or contracts manager spends on initial review by handling the systematic comparison work, so human attention focuses on clauses that genuinely require professional judgment and negotiating strategy.

Configuration

# .env — optional configuration
LEG_JURISDICTION=ZA            # Default: ZA (South Africa). Options: ZA | UK | US
LEG_BASELINE_TEMPLATE=standard # Use 'standard' or path to custom baseline JSON
LEG_RISK_THRESHOLD=6           # Flag clauses at or above this risk score (1-10)

Supported Contract Types

Core Capabilities

Review Output Structure

{
  "contract_review": {
    "document": "Master Services Agreement — Vendor XYZ",
    "review_date": "2026-03-31",
    "overall_risk_score": 7.2,
    "summary": "Above-market risk profile. Primary concerns: uncapped liability, missing IP ownership clause, unilateral termination right for vendor.",
    "clause_analysis": [
      {
        "clause": "Limitation of Liability",
        "location": "Section 8.2",
        "text_extracted": "Vendor's total liability shall not exceed the fees paid in the preceding 30 days...",
        "risk_score": 9,
        "issue": "30-day cap is extremely low for a 12-month contract — effectively limits recovery to 1/12th of annual fees",
        "market_standard": "12-month lookback is standard; some contracts use total contract value",
        "recommendation": "Negotiate to 12-month fee cap minimum, or total contract value for material breaches"
      },
      {
        "clause": "IP Ownership",
        "location": "Not found",
        "risk_score": 8,
        "issue": "No IP assignment clause — ownership of work product is ambiguous",
        "recommendation": "Add explicit clause: all work product created under this agreement vests in Client upon payment"
      }
    ],
    "missing_clauses": ["IP ownership", "Data processing agreement", "Business continuity"],
    "favourable_clauses": [
      "Confidentiality (Section 5) — standard 3-year term",
      "Governing law (South Africa — Western Cape) — acceptable"
    ]
  }
}

Redline Suggestion Format

## Original (Section 8.2):
Vendor's total liability shall not exceed the fees paid in the **preceding 30 days**.

## Suggested Redline:
Vendor's total liability shall not exceed the **greater of (i) the fees paid in the
preceding 12 months or (ii) ZAR 500,000** for any single claim or series of related claims.

## Rationale:
30-day cap creates insufficient protection for a 12-month engagement. 12-month lookback
is market standard for services contracts of this nature.

Pairing by Role

RolePrimary Use
Contracts ManagerAI reviews vendor MSA, scores each clause, flags deviations from standard terms, drafts redline suggestions for review
In-house CounselAI extracts liability exposure scenarios, calculates maximum risk, identifies triggering conditions for legal review
Procurement LeadAI compares incoming vendor terms against standard playbook, produces deviation register for negotiation briefing
Legal OpsAI processes contract pipeline, categorises by risk level, routes high-risk agreements for priority legal review

MCP Tools

ToolDescription
leg_review_contractRun full first-pass review on a contract document, returning structured analysis with overall risk score
leg_extract_clausesExtract and categorise all identifiable clauses from a contract document
leg_score_riskScore a specific clause or clause text on the 1-10 risk scale with rationale
leg_detect_missingIdentify standard clauses that are absent from the contract given its type and jurisdiction
leg_suggest_redlineGenerate alternative clause language for a flagged provision with commercial rationale
leg_summarise_termsProduce an executive summary of key commercial terms: payment, liability, IP, termination
leg_compare_baselineCompare contract against a stored standard template and produce a deviation register
leg_analyse_liabilityCalculate maximum liability exposure scenarios with triggering conditions
leg_generate_reportProduce a formatted review report suitable for legal or board distribution

Clause Types Reference

Market standard positions for 15 standard clause types across SA, UK, and US commercial agreements:

Clause TypeNormal PositionRed Flags
Limitation of Liability12-month fee cap; consequential loss excludedNo cap; sub-30-day lookback; consequential loss included
IndemnificationMutual; IP & gross negligence only; cappedOne-way; no cap; defence costs included
Termination for ConvenienceMutual; 90-day noticeUnilateral vendor; 7-day notice; fees accelerate
Termination for CauseMutual; 30-day cure periodNo cure; immediate; broad triggers
IP OwnershipClient owns work product; vendor retains background IPClause absent; vendor owns all; ownership ambiguous
ConfidentialityMutual; 3 years; standard exclusionsPerpetual; one-way; no exclusion for public domain
Payment Terms30 days net; dispute mechanism7-day terms; default interest above prime; no dispute mechanism
WarrantiesFitness for purpose; compliance with specs; no IP infringementNo warranties; total disclaimer; no remedy on breach
Governing LawAgreed neutral jurisdiction; clearly specifiedAbsent; vendor's home jurisdiction only
Dispute ResolutionNegotiation then mediation then arbitrationImmediate litigation; foreign courts only; no cost sharing
Force MajeureDefined events; notice; termination if >90 daysNo definition; no notice; no termination right
Change of ControlEither party may terminate on change; notice requiredAbsent; automatic assignment permitted
Data ProtectionPOPIA/GDPR compliant; DPA attached; 72hr breach notificationNo DPA; no breach notification; no data deletion obligation
Non-SolicitationMutual; 12 months; employees onlyUnlimited duration; covers contractors and clients
Entire AgreementSupersedes prior; amendments in writing onlyUnilateral variation right; no notice of changes

Common Gotchas

See Also