Tailoring the defects in graphene and its related carbon allotropes has great potential to exploit their enhanced electrochemical properties for energy applications, environmental remediation, and sensing. Vertical graphene, also known as carbon nanowalls (CNWs), exhibits a large surface area, enhanced charge transfer capability, and high defect density, making it suitable for a wide range of emerging applications. However, precise control and tuning of the defect size, position, and density remain challenging; moreover, due to their characteristic labyrinthine morphology, conventional characterization techniques and widely accepted quality indicators fail or need to be reformulated. This study primarily focuses on examining the impact of boron heterodoping and argon plasma treatment on CNW structures, uncovering complex interplays between specific defect-induced three-dimensional nanostructures and electrochemical performance. Moreover, the study introduces the use of defect-rich CNWs as a label-free electrode for directly oxidizing glyphosate (GLY), a common herbicide, and its metabolites (sarcosine and aminomethylphosphonic acid) for the first time. Crucially, we discovered that the presence of specific boron bonds (BC and BN), coupled with the absence of Lewis-base functional groups such as pyridinic-N, is essential for the oxidation of these analytes. Notably, the D+D* second-order combinational Raman modes at ≈2570 cm-1 emerged as a reliable indicator of the analytes' affinity. Contrary to expectations, the electrochemically active surface area and the presence of oxygen-containing functional groups played a secondary role. Argon-plasma post-treatment was found to adversely affect both the morphology and surface chemistry of CNWs, leading to an increase in sp3-hybridized carbon, the introduction of oxygen, and alterations in the types of nitrogen functional groups. Simulations support that certain defects are functional for GLY rather than AMPA. Sarcosine oxidation is the least affected by defect type.