Towards Corpus-Grounded Agentic LLMs for Multilingual Grammatical Analysis