> ## 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_route_to_specialist: Dispatch to Human Attorney

> Dispatch a legal document to Lexera's human-in-the-loop verification queue. Places a temporary AED wallet hold and assigns the case to a law firm.

The `lexera_route_to_specialist` tool is Lexera's primary paid endpoint. It sends a legal document to a professional law firm for human attorney review. Lexera automatically detects the target jurisdiction, queries the global pricing engine, places a temporary hold on your corporate AED wallet at the required tier, and assigns the document to the corresponding law firm queue. Once the attorney completes review, the order status moves to `verified_executed` and certified artifacts become available.

## Parameters

<ParamField body="document_text" type="string" required>
  The raw text of the contract or legal document to be reviewed by a human attorney.
</ParamField>

<ParamField body="target_jurisdiction" type="string" required>
  The governing country (for example, `UAE` or `Jordan`). Lexera automatically resolves regional aliases (such as `UAE Federal` or `DIFC`) to the parent country for pricing.
</ParamField>

<ParamField body="specialist_instructions" type="string" required>
  Specific directives for the human attorney (for example, "Cap liability at 100% of contract value").
</ParamField>

## JSON-RPC request

<CodeGroup>
  ```json theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "lexera_route_to_specialist",
      "arguments": {
        "document_text": "Vendor contract with uncapped liability clause...",
        "target_jurisdiction": "UAE",
        "specialist_instructions": "Cap liability at 100% of contract value."
      }
    }
  }
  ```

  ```bash theme={null}
  curl -X POST "https://lexera.dev/mcp-server/messages?sessionId=YOUR_SESSION_ID" \
    -H "Authorization: Bearer lex_82bea57b8c3fd39f..." \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "tools/call",
      "params": {
        "name": "lexera_route_to_specialist",
        "arguments": {
          "document_text": "Vendor contract with uncapped liability clause...",
          "target_jurisdiction": "UAE",
          "specialist_instructions": "Cap liability at 100% of contract value."
        }
      }
    }'
  ```
</CodeGroup>

<Info>
  The POST returns `HTTP 202 Accepted`. The dispatch result is streamed back over the open SSE connection.
</Info>

## Response

The response is streamed over SSE inside a JSON-RPC 2.0 envelope.

```json theme={null}
{
  "status": "DISPATCH_SUCCESS",
  "order_id": "32e65a49-ba4c-441f-b8fe-73932e545f89",
  "current_status": "pending_admin_triage",
  "assigned_firm": "Legal Operations Smart Hold",
  "authorized_amount": 699,
  "currency": "AED",
  "requires_human_verification": true
}
```

<ResponseField name="status" type="string">
  Always `"DISPATCH_SUCCESS"` when the document is accepted into the queue.
</ResponseField>

<ResponseField name="order_id" type="string">
  A UUID that uniquely identifies this dispatch. Use it with [`lexera_get_order_status`](/tools/lexera-get-order-status) to poll for completion.
</ResponseField>

<ResponseField name="current_status" type="string">
  The initial order status. For a successful dispatch, this is `pending_admin_triage`.
</ResponseField>

<ResponseField name="assigned_firm" type="string">
  The name of the law firm queue that received the document.
</ResponseField>

<ResponseField name="authorized_amount" type="number">
  The AED amount temporarily held on your corporate wallet for this review.
</ResponseField>

<ResponseField name="currency" type="string">
  Always `"AED"`.
</ResponseField>

<ResponseField name="requires_human_verification" type="boolean">
  Always `true` for this tool, confirming the document is in a human attorney queue.
</ResponseField>

## Next steps

After dispatch, poll the order status with [`lexera_get_order_status`](/tools/lexera-get-order-status) using the returned `order_id`. When `current_status` becomes `verified_executed`, download the certified artifacts via the [download guide](/guides/download-certified-artifacts).

<Warning>
  If your workspace AED wallet does not have sufficient balance to cover the `authorized_amount`, the dispatch fails with an insufficient balance error. See the [Errors reference](/reference/errors) for the exact error payload and resolution steps.
</Warning>
