# EVIDIQ Clause MCP

Plain-language decoding of agreements and policy documents, where every statement is
bound to a verifiable quote, the reasoning runs inside a TEE-attested 0G Compute
model, and the report is EIP-191 signed and anchored to 0G Storage. Service #23 of
the EVIDIQ fleet.

- **8 tools** (3 free, 5 paid in USDT0 on eip155:196, LIFESTYLE band):
  `decode_document` (0.05), `risk_flags` (0.10), `obligation_calendar` (0.10),
  `compare_documents` (0.15), `verdict_report` (0.25); free: `capabilities`,
  `verify_report`, `quote`.
- **Citations are checked, not trusted.** Every statement carries the quoted span
  it came from (quote + character offsets). Each citation is mechanically verified
  against the caller-supplied source before it reaches the caller; a statement
  whose citation fails is dropped and counted (`citationsDropped`), never returned
  unmarked. What the document does not support is answered `unsupported` with a
  stated reason — never invented.
- **The TEE gate is hard, not a preference.** Every inference pass runs on the 0G
  Compute router (`qwen3-vl-30b` for extraction/decoding, `deepseek-v4-flash` for the
  independent reviewing pass on `verdict_report`, `0gm-1.0-35b-a3b` as fallback —
  all TDX-attested) and is gated on the model's `tee_attested` flag read LIVE from
  the router registry. A non-attested model refuses: the call fails closed, nothing
  is signed. Every paid response records provider address, request id and wei costs
  verbatim from `x_0g_trace`, plus `teeType`/`teeVerifier`/`verifiability` from the
  registry. Costs are wei of 0G, never converted to USD.
- **`verdict_report` is the sealed tool.** Two passes — an extractor and an
  independent reviewer that must justify or drop each flag — then a JCS digest over
  a closed field set, an EIP-191 signature by the fleet signer, and a 0G Storage
  anchor of the report and its digest. The raw source is anchored only when
  `anchorSource: true` (a rental contract has names and addresses in it).
  `verify_report` is free and re-checks everything: digest recomputation, the
  EIP-191 signature, chain continuity (a dropped record is a visible gap), and
  every citation against the supplied source.
- **Free tools never call the model.** The router credit is a real asset behind an
  endpoint that takes no payment; `capabilities`, `verify_report` and `quote` are
  deterministic and free forever.
- **Documents arrive in the request** — text (up to 200,000 characters) or up to 20
  base64 image pages — never fetched from a URL.
- **Endpoint:** `POST https://mcp.evidiq.dev/clause/mcp` (MCP streamable HTTP).
  Discovery at `https://mcp.evidiq.dev/clause/x402`, skill at
  `https://mcp.evidiq.dev/clause/skill.md`.

Boundary: Clause is a reading aid — it shows what the text says and where. It is
not a substitute for professional counsel, and it does not recommend signing
anything.
