Overview
Pattern 1: Pre-flight check
Call/check with just page_count and word_count while the user is still drafting. This catches the most common compliance failures (page/word limits, PMC requirements, filing gates) with minimal input.
Pattern 2: Full compliance check
After your application parses the document (e.g., extracting caption fields, checking for a table of contents, measuring font sizes), send the full document structure to/check.
Pattern 3: Rules lookup
Call/rules to display applicable rules proactively, before the user even starts drafting. Show them the requirements for their judge and motion type up front.
Pattern 4: Classify + Check pipeline
Upload a PDF to/classify, which extracts metadata and classifies the document automatically. The response includes a check_request with the extracted document metadata. Before sending to /check, add the filing context fields that only the filer knows.
Important: page_count in the /classify response is body pages, not total PDF pages. Front matter (cover page, table of contents, table of authorities) and back matter (certificate of service, signature pages) are automatically excluded. This matches how courts count pages for limit enforcement.
/classify endpoint handles the analysis and produces a ready-to-use /check request.
Latency note: /classify takes 10-30 seconds. /check is deterministic and sub-millisecond. Plan your UX accordingly: show a loading state for classification, then instant results for the compliance check.
Pattern 5: Enforcement monitoring
Monitor privacy enforcement actions and trigger compliance reviews when relevant events appear. Input needed: Jurisdiction filters, industry, date range What you call:search_enforcement_actions via MCP, poll periodically
Latency: Sub-second (MCP tool call)
Use during: Ongoing compliance monitoring
When a new enforcement event matches your criteria, call get_enforcement_details to get the full context including search_terms (contract clauses to review) and contract_impact (what to check in vendor agreements).
For the full enforcement tool reference and parameters, see the MCP: Enforcement Data guide.
Choosing a pattern
Most integrations use Pattern 1 during drafting and Pattern 2 before filing. Pattern 3 is for proactive UIs. Pattern 4 is for applications that accept PDF uploads and don’t have their own document parser. Pattern 5 runs alongside the court rules patterns for teams that also need regulatory monitoring.