Analyze Case
analyze_caseTriggers AI analysis of a single case asynchronously. Poll after 30-60 seconds for the result, or set force to re-analyze an existing case.
Instructions
Triggers AI analysis of a single case. CONSUMES AI CREDITS. ASYNCHRONOUS: normally returns immediately with status processing while the analysis runs in the background; poll get_case_analysis after roughly 30 to 60 seconds to retrieve the result. If analysis already exists and force is not set, the existing analysis is returned immediately instead with alreadyExists true. Set force true to re-analyze a case that already has analysis, which also consumes credits again. Fails with a clear message if the case has no usable text or PDF content to analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Case identifier: either a 24 character MongoDB ObjectId hex string, or a case number string. Lookup order: the server first tries to parse this as an ObjectId; only if that parse fails does it fall back to looking up by case number. This means a syntactically valid but nonexistent ObjectId returns 404 without ever trying the case number path. | |
| force | No | Re-run analysis even if it already exists, default false. |