Pyrazoloamides are provided which are phosphonate and phosphinate glucokinase activators that are useful in treating diabetes and related diseases and have the structure wherein is a pyrazolyl ring; R4 is —(CH2)n—Z—(CH2)m—PO(OR7)(OR8), —(CH2)nZ—(CH2)m—PO(OR7)R9, or —(CH2)nZ—(CH2)m—PO(R9)(R10); R5 and R6 are independently selected from H, alkyl and halogen; Y is R3(CH2)s, wherein R3 is aryl, s is 0, X is a bond; and n, Z, m, R4, R5, R6, and R7 are as defined herein; or a pharmaceutically acceptable salt thereof.