@mcp.tool() def warm_up() -> dict: """Preload the OCR and NER models so the first real call is fast.""" _get_pipeline() # builds and caches the pipeline on first use return {"status": "ready"}