Upload and process documents through the fileAI MCP server
Process a fictional document with an assistant already connected to fileAI, track its status and compare extracted values and OCR text with the original.
What you will create
Process a small fictional document with fileAI from an assistant already connected to its MCP server, then distinguish processing status from checking extracted data. MCP lets the assistant call tools in your fileAI workspace.
Before you start
Use an authorized test project and a document containing no personal or confidential data. This guide does not configure connections, keys or network access. Do not paste secrets into the conversation. Check any cost and permission to transmit the file before uploading.
Step-by-step
- Ask the assistant to list accessible projects and confirm the exercise destination. Do not let an ambiguous name determine it.
- Specify the exact file and chosen project. The upload_file workflow returns an uploadId; retain it to track that operation.
- Request status through wait_for_upload. processing or uploading means work continues; failed means failure; action_required means intervention is needed. Wait for processed before reading values.
- Request extracted data through get_file_values and OCR text through get_file_ocr for the resulting file. Compare both with the original.
Example to adapt
Prepare a test document called “Blue workshop” containing only: “Reference TEST219. Two notebooks at 4 units each. Total 8 units.” No date is supplied.
Instruction: “Process only this document in the confirmed test project. Report its status, then, after processing, its reference, quantity and total. Mark the date as missing if it is absent from the document. Do not edit or delete the results.”
Check your result
- Check that the tracked identifier belongs to the requested file and project.
- Compare TEST219, quantity 2 and total 8 against the original. Calculating 2 × 4 provides a simple check, not general proof of accuracy.
- Distinguish correct recognition from correct extraction: accurate OCR text can still be assigned to the wrong field.
- Check that no date was invented and all expected lines were reviewed.
Common problems
Wait ends without a final result: done false does not automatically mean failure; continue tracking the same operation rather than uploading again. Rejected link: a sharing page is not a direct file link. Do not make a sensitive document public to bypass this. Missing project: have the owner check access rather than arbitrarily expanding permissions. Action required: read the reason before retrying.
Next steps
Add a second fictional document with an intentionally inconsistent total and check that the discrepancy is flagged, not silently corrected. Documentation-based guide: no file was transmitted, no connector configured and no provider processing executed.



