async def execute(self, arguments: dict[str, Any]) -> list[TextContent]:
        """Override execute to check original_request size before processing"""
        # First validate request
        request_model = self.get_request_model()
        request = request_model(**arguments)

        # Check original_request size if provided
        if request.original_request:
            size_check = self.check_prompt_size(request.original_request)
            if size_check:
                return [TextContent(type="text", text=ToolOutput(**size_check).model_dump_json())]

        # Continue with normal execution
        return await super().execute(arguments)
Override execute to check original_request size before processing
tools/precommit.py