Audit Contract Risks & Generate Legal Redlines
audit_contract_risksAudit commercial and B2B legal agreements (MSAs, NDAs, SaaS terms, subcontracts) to detect high-risk clauses, compute a 0-100 overall risk score, and generate verbatim clause quotes paired with ready-to-paste fallback redline language. This operation is read-only, stateless, and non-destructive (requires X-RapidAPI-Key; raw_text accepts 50 to 100,000 characters, and party_perspective shifts redline rewrites to protect the 'vendor', 'buyer', or 'neutral' counsel). Use this tool when reviewing commercial/legal terms (indemnification, liability caps, IP ownership, termination for convenience); use scan_far_dfars_clauses instead for federal FAR/DFARS/CMMC regulatory flow-down audits, or parse_b2b_contract for basic metadata extraction.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raw_text": "<raw_text>"
},
"name": "audit_contract_risks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_text | Yes | Full or partial legal contract text (MSA, NDA, subcontract, or SaaS agreement) to audit for commercial, IP, indemnification, and termination risks (50 to 100,000 characters). | |
| focus_categories | No | Optional list of specific clause risk categories to prioritize during the audit. | |
| party_perspective | No | Negotiating party perspective ('vendor' protects service provider liability/IP, 'buyer' strengthens customer remedies/SLAs, 'neutral' balances mutual terms). | vendor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_type | No | Identified legal document type (e.g., 'Master Services Agreement', 'Mutual NDA', 'Statement of Work'). | |
| flagged_clauses | No | Detailed list of risky clauses identified in the contract, ordered by severity. | |
| executive_summary | No | High-level deal-desk summary of the contract's risk posture and primary negotiation blockers. | |
| party_perspective | No | The negotiating perspective used to evaluate risks ('vendor', 'buyer', or 'neutral'). | |
| overall_risk_level | No | Aggregate risk severity classification ('LOW', 'MEDIUM', 'HIGH', or 'CRITICAL'). | |
| overall_risk_score | No | Quantified overall risk score from 0 (minimal risk) to 100 (critical/unacceptable exposure). | |
| missing_standard_protections | No | List of standard protective clauses missing from the contract (e.g., 'No Limitation of Liability cap'). |