Analyze figures in a document
analyze_documentExtracts and analyzes figures from PDFs, spreadsheets, and images, returning values, conflicts, recomputations, and a review flag to check internal numeric consistency and flag reads needing source verification.
Instructions
Analyze figures in an uploaded PDF, spreadsheet or JPEG/PNG/WebP image. Image figures are OCR/model reads that need source review; an absent or ambiguous figure is not a verified zero. Returns figures, conflicts, recomputations, a review flag and category. Checks internal numeric consistency only; external fact-checking of every claim is done by review_document.
Spreadsheets (xlsx/xls/csv): extracted deterministically with exact cell provenance. No model calls.
PDFs: the page image is read for the printed figures (it never computes); those are image reads, capped at needs_review. Requires image reading to be configured on the server.
JPEG/PNG/WebP: OCR reads the image, then source-grounded finance analysis checks recognized figures. Incompatible or missing arithmetic scope remains unresolved.
Credits: 3. The document is downloaded and parsed. PDFs and images may require vision reads. Rate-limited more strictly than compute-only endpoints.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset_id": "<asset_id>"
},
"name": "analyze_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | The uploaded PDF, spreadsheet or JPEG/PNG/WebP asset ID from upload_file. |