process_contract
Analyze contracts through an 8-stage pipeline to generate redlines as OOXML Track Changes and optional negotiation emails.
Instructions
Process a contract through the full 8-stage BitsBound pipeline.
⚠️ BEFORE CALLING THIS TOOL: You MUST gather the following information from the user:
REQUIRED - Ask the user:
representingParty: "Are you representing the Customer (buyer) or Vendor (seller)?"
aggressivenessLevel: "On a scale of 1-10, how aggressive should the redlines be? (1=very conciliatory, 5=balanced, 10=very aggressive)"
RECOMMENDED - Ask if not obvious: 3. paperOwnership: "Did the counterparty draft this contract (their paper) or did you draft it (our paper)?" 4. dealValue + dealValueCurrency: "What's the estimated deal value?" 5. industry: "What industry is this contract for?" 6. additionalContext: "Any special context about this deal or relationship I should know?"
FOR EMAIL GENERATION - Ask: 7. emailRecipient: "Should I generate a negotiation email to send to the counterparty?" 8. If yes: recipientName, senderName (your name), any additionalContext for the email tone
After gathering this context, call the tool. The response includes "importantNote" with when to check back (~45 min).
Pipeline: (1) Context Loading, (2) Data Extraction, (3) Party Identification, (4) Research, (5) AI Analysis with 18+ analyzers, (6) Instant Swarm™ redlining, (7) Email Generation, (8) Synthesis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Original filename of the document. If using filePath, this is extracted automatically. | |
| filePath | No | RECOMMENDED: Absolute path to the DOCX file on disk (e.g., "/Users/john/Documents/contract.docx"). The server will read and encode the file automatically. | |
| industry | No | Industry context for analysis. Affects regulatory considerations and benchmarks. | |
| dealValue | No | Estimated deal value / annual contract value (ACV). Helps calibrate risk thresholds. | |
| docxBase64 | No | Alternative: The contract document already encoded as base64 string (DOCX format). Use filePath instead if possible. | |
| perspective | No | DEPRECATED: Use representingParty instead | |
| emailContext | No | Additional context for email generation | |
| analysisDepth | No | Analysis depth: quick (~10 min), standard (~30 min), deep (~45 min). Default: standard | |
| emailRecipient | No | Who should the email be addressed to? counterparty=send to other side, client=internal summary, none=skip email | |
| paperOwnership | No | Who drafted the contract? their-paper=counterparty drafted (default, full analysis), our-paper=we drafted (review their markup only) | |
| enableAutoSwarm | No | Enable parallel 17-section SAC analysis for comprehensive redlines. Default: true | |
| additionalContext | No | Free-form context about the deal: relationship history, priorities, concerns, red lines, etc. | |
| dealValueCurrency | No | Currency for deal value. Default: USD | |
| representingParty | No | REQUIRED: Who are you representing? customer=buyer, vendor=seller, neutral=balanced review | |
| aggressivenessLevel | No | IMPORTANT: Redline aggressiveness 1-10. 1=very conciliatory (accept most terms), 5=balanced (default), 10=very aggressive (push hard on everything) | |
| enableEmailGenerator | No | Generate a negotiation email summarizing redlines? Default: true |