Plays an important role in preventing glycogen hyperphosphorylation and the formation of insoluble aggregates, via its activity as glycogen phosphatase, and by promoting the ubiquitination of proteins involved in glycogen metabolism via its interaction with the E3 ubiquitin ligase NHLRC1/malin. Shows strong phosphatase activity towards complex carbohydrates in vitro, avoiding glycogen hyperphosphorylation which is associated with reduced branching and formation of insoluble aggregates (PubMed:16901901, PubMed:23922729, PubMed:25538239, PubMed:25544560, PubMed:26231210). Dephosphorylates phosphotyrosine and synthetic substrates, such as para-nitrophenylphosphate (pNPP), and has low activity with phosphoserine and phosphothreonine substrates (in vitro) (PubMed:11001928, PubMed:11220751, PubMed:11739371, PubMed:14532330, PubMed:14722920, PubMed:16971387, PubMed:18617530, PubMed:22036712, PubMed:23922729). Has been shown to dephosphorylate MAPT (By similarity). Forms a complex with NHLRC1/malin and HSP70, which suppresses the cellular toxicity of misfolded proteins by promoting their degradation through the ubiquitin-proteasome system (UPS). Acts as a scaffold protein to facilitate PPP1R3C/PTG ubiquitination by NHLRC1/malin (PubMed:23922729). Also promotes proteasome-independent protein degradation through the macroautophagy pathway (PubMed:20453062). ; [Isoform 2]: Does not bind to glycogen (PubMed:18617530). Lacks phosphatase activity and might function as a dominant-negative regulator for the phosphatase activity of isoform 1 and isoform 7 (PubMed:18617530, PubMed:22036712). ; [Isoform 7]: Has phosphatase activity (in vitro).