Skip to main content
Lexera’s lexera_local_statutory_audit is a public, unauthenticated tool designed for the anonymous PLG funnel. You can check any contract or legal document against local statutory laws in seconds, with no API key and no wallet hold required. This guide walks you through opening an SSE stream, capturing the session ID, dispatching the audit request, and reading the compliance result.

Prerequisites

  • No API key is required for this tool.
  • All requests must use HTTPS. Plain HTTP will fail.
  • A contract or legal document as raw text.

Steps

1

Open the SSE stream

Start by opening a persistent Server-Sent Events connection to Lexera’s MCP server. This connection will stream back both the session endpoint and the eventual tool result.
Although the example above includes a Bearer token, lexera_local_statutory_audit is unauthenticated. You may omit the Authorization header entirely for this tool.
2

Capture the session URL

The server streams an endpoint event containing the session path. Extract the sessionId and build the full POST URL:
Store this URL. Every subsequent JSON-RPC dispatch for this session must POST to it.
3

Dispatch the statutory audit

POST a JSON-RPC 2.0 payload to your session URL with the document text and target jurisdiction.
The server responds with HTTP 202 Accepted. The audit result streams back over the open SSE connection.
4

Read the result over SSE

Continue reading from the SSE stream opened in Step 1. The compliance result arrives as a JSON-RPC response. Inspect the payload for statutory flags, warnings, or a clean pass.
No wallet hold is required for lexera_local_statutory_audit. This tool is free and part of Lexera’s anonymous PLG funnel.

Next steps