analyze_document
Runs AI contract analysis on an envelope document to flag risks and clauses and return SAFE/CAUTION/RISKY sentiment; requires explicit per-document consent before use.
Instructions
Run AI contract analysis on an envelope's document (any status, DRAFT included). The document is sent to SignaTrust's servers and analysed there by a third-party AI model (Google Gemini), so ask the user for explicit consent for THIS document before calling it: SignaTrust's policy is that server-side AI on a document needs per-document consent. Returns a structured report covering risk assessment, flagged clauses, and overall sentiment (SAFE / CAUTION / RISKY). Available on every plan. Refused with a 403 when the organization has switched AI processing off or is in HIPAA mode; surface that message rather than retrying. Each call runs a new, paid AI analysis.
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": {
"envelopeId": "<envelopeId>"
},
"name": "analyze_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelopeId | Yes | Envelope ID to analyze |