reject_document
Force a manual reject decision for parsed documents to maintain data quality standards in documentary corpora.
Instructions
Force a manual reject decision for a parsed document.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kwargs | Yes |
Implementation Reference
- kfabric/mcp/registry.py:161-163 (handler)The actual handler function for the reject_document MCP tool.
def _reject_document(orchestrator: Orchestrator, _db: Session, _settings: AppSettings, arguments: dict[str, Any]) -> Any: decision = orchestrator.override_decision(arguments["document_id"], accepted=False) return {"parsed_document_id": arguments["document_id"], "decision_status": decision.status} - kfabric/mcp/registry.py:243-252 (registration)The registration of the reject_document tool in the registry.
ToolDefinition( name="reject_document", title="Reject Document", description="Force a manual reject decision for a parsed document.", version="1.0.0", input_schema={"type": "object", "properties": {"document_id": {"type": "string"}}, "required": ["document_id"]}, output_schema={"type": "object"}, security=common_security, handler=_reject_document, ),