CCA Prep Q15 / 60 Tool Design & MCP Integration
2:00:00
Structured Data Extraction

Your structured data extraction pipeline processes 1,200 insurance claim documents per night using a extract_claim_fields tool with eager_input_streaming: true. In production monitoring, you observe that roughly 3% of extraction jobs fail with a JSON parse error at the accumulation step — and the error logs show these failures correlate almost entirely with documents that triggered the max_tokens stop reason. Your current error handler logs the failure and skips the document. What is the most effective architectural fix for this failure mode?