Cobalt–ruthenium bypiridine–oxalate metal–organic frameworks (MOFs) were synthesized via a solvothermal method with a custom-designed reactor that permits stirring, which can result in changes in the morphology of the structures. In this work, we performed a morphological and structural study of MOFs with varying tris(2,2,bipyridyl) and diclororuthenium(II) hexahydrate concentrations, demonstrating changes in the size of the MOFs, and these MOFs were used as the luminescent materials in an electrochemiluminescent (ECL) system for glyphosate (Gly) detection, which acts as a coreactant in the light emission of . Gly is the most commonly used herbicide worldwide, and our system has a calibration curve range of 10–70 ppm, with a detection limit of 7.6 ppm.