Skip to main content
Glama
SignaTrust MCP Server

SignaTrust MCP Server

Official

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

NameRequiredDescriptionDefault
envelopeIdYesEnvelope ID to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it discloses that the document leaves the system to SignaTrust's servers and a third-party model (Google Gemini), that each call is a new paid analysis, that consent is required per document, and that 403 occurs when AI processing is disabled or HIPAA mode is active. These are material behavioral details an agent could not infer from readOnlyHint/openWorldHint alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then consent, return format, availability, and error behavior in a logical sequence. It is dense but every sentence carries operational information, with only minor redundancy around the consent requirement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, the description explains the return shape (risk assessment, flagged clauses, overall sentiment labels), consent requirements, plan availability, and refusal behavior. Nothing needed to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds useful meaning by clarifying that the envelope's document is analyzed regardless of status, including DRAFT. With only one parameter, there is little further semantic depth to add.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('Run AI contract analysis on an envelope's document') and explicitly states scope ('any status, DRAFT included'), so an agent can distinguish it from document retrieval tools like download_document or get_evidence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear preconditions: obtain explicit per-document consent before calling, surface a 403 rather than retrying, and note the tool is available on every plan. It does not name alternatives for obtaining document content without AI analysis, but the when-to-use and when-not-to-use conditions are otherwise explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.