Skip to main content
Glama

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
NameRequiredDescriptionDefault
kwargsYes

Implementation Reference

  • 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}
  • 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,
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fbailleux2/kfabric'

If you have feedback or need assistance with the MCP directory API, please join our Discord server