> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lexera.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# lexera_local_statutory_audit: Free Statutory Compliance Check

> Run a free, unauthenticated statutory compliance check against local laws. Part of Lexera's PLG funnel with no wallet hold required.

The `lexera_local_statutory_audit` tool is Lexera's public, self-serve entry point. It performs a rapid automated compliance scan of a contract or legal document against the statutory laws of a target jurisdiction. No API key is required, and no AED wallet hold is placed. This tool is designed for the anonymous product-led growth (PLG) funnel, so you can evaluate Lexera's capabilities before integrating deeper into the human-in-the-loop pipeline.

## Parameters

<ParamField body="document_text" type="string" required>
  The raw text of the contract or legal document you want to audit.
</ParamField>

<ParamField body="target_jurisdiction" type="string" required>
  The governing region to check against (for example, `UAE` or `Jordan`).
</ParamField>

## JSON-RPC request

<CodeGroup>
  ```json theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "lexera_local_statutory_audit",
      "arguments": {
        "document_text": "Vendor contract with uncapped liability clause...",
        "target_jurisdiction": "UAE"
      }
    }
  }
  ```

  ```bash theme={null}
  # No Authorization header is required for this tool
  curl -X POST "https://lexera.dev/mcp-server/messages?sessionId=YOUR_SESSION_ID" \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "tools/call",
      "params": {
        "name": "lexera_local_statutory_audit",
        "arguments": {
          "document_text": "Vendor contract with uncapped liability clause...",
          "target_jurisdiction": "UAE"
        }
      }
    }'
  ```
</CodeGroup>

<Note>
  This tool is synchronous. The audit result is streamed back over the open SSE connection as a single JSON-RPC response. There is no `order_id` returned because the tool does not create a human-in-the-loop dispatch.
</Note>

## Response

The response is streamed over the open SSE connection in a standard JSON-RPC 2.0 envelope. The payload contains the statutory audit findings as text content.

<ResponseField name="result.content" type="array">
  An array of content objects. Each object has a `type` (typically `text`) and a `text` field containing the audit results.
</ResponseField>

<ResponseField name="jsonrpc" type="string">
  Always `"2.0"`.
</ResponseField>

<ResponseField name="id" type="number | string">
  Mirrors the `id` from the request.
</ResponseField>

## What happens next

Use the statutory audit to identify high-level compliance gaps before deciding whether to route the document to a human attorney. If the audit flags issues that require professional review, proceed to [`lexera_route_to_specialist`](/tools/lexera-route-to-specialist). You can also check the required AED wallet hold for your jurisdiction first with [`lexera_check_jurisdiction_rates`](/tools/lexera-check-jurisdiction-rates).
