API & MCP
Everything a person can do on Before You Sign, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://beforeyousign.usefulweb.site/api/v1/calculate– run Before You SignGET https://beforeyousign.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Before You Sign
Paste, upload or link a contract, terms of service, lease or employment agreement in English or German. Before You Sign flags 19 kinds of clauses — auto-renewal, notice periods, minimum terms, termination fees, liability limits, indemnities, arbitration, non-competes, IP assignment, price escalation, penalties, guarantees, data sharing and unilateral changes — quotes each clause, extracts durations and amounts, and lists questions to ask.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | — | Contract text. Paste the text here, or use one of the other options below (exactly one). |
file | file | — | Or upload a file. TXT, PDF, DOCX, HTML or a photo/scan (PNG/JPG, read with OCR). Max 5 MiB. |
url | url | — | Or fetch public terms from a URL. A public http(s) address. The page text is fetched once and analysed. |
Example request
SaaS subscription terms (English)
curl -X POST https://beforeyousign.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"1. Term. The initial term of this Agreement is 24 months. Thereafter, this Agreement shall automatically renew for successive 12-month periods unless either party provides at least 90 days' prior written notice of non-renewal.\n2. Fees. Provider may increase the fees at any time at its sole discretion. Overdue amounts bear interest at 1.5% per month.\n3. Early termination. If Customer terminates before the end of the initial term, all remaining fees for the term become immediately due.\n4. Liability. In no event shall Provider be liable for any indirect or consequential damages; Provider's aggregate liability is limited to the fees paid in the last 3 months.\n5. Customer shall indemnify and hold harmless Provider from any and all claims arising from Customer's use of the service.\n6. Disputes. Any dispute shall be resolved by binding arbitration, and Customer waives any right to participate in a class action. This Agreement is governed by the laws of the State of Delaware.\n7. Provider reserves the right to modify these terms at any time; continued use constitutes acceptance."}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://beforeyousign.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
before_you_sign - Local stdio connector:
node src/mcp-stdio.ts --tool=before-you-sign
{
"mcpServers": {
"before-you-sign": { "type": "http", "url": "https://beforeyousign.usefulweb.site/mcp" }
}
}