Unique chemical and thermal stabilities of a zirconium-based metal-organic framework (MOF) and its functionalized analogues play a key role to efficiently remove chemical warfare agents (ex., cyanogen chloride, CNCl) and simulant (dimethyl methylphosphonate, DMMP) as well as industrial toxic gas, ammonia (NH3). Herein, we for the first time demonstrate outstanding performance of MOF-808 for removal of toxic chemicals in humid environment via special design of functionalization of hydroxo species bridging Zr-nodes using a triethylenediamine (TEDA) to form ionic frameworks by gas phase acid-base reactions. In situ experimental analyses and first-principles density functional theory calculations unveil underlying mechanism on the selective deposition of TEDA on the Zr-bridging hydroxo sites (μ3-OH) in Zr-MOFs. The crystal structure of TEDA-grafted MOF-808 was confirmed using synchrotron X-ray powder diffraction (SXRPD). Furthermore, operando FT-IR spectra elucidate why the TEDA-grafted MOF-808 shows by far superior sorption efficiency to other MOF varieties. This work provides design principles and applications how to optimize MOFs for the preparation for versatile adsorbents using diamine grafting chemistry, which is also potentially applicable to various catalysis.