TinyLLM: Evaluation and Optimization of Small Language Models for Agentic Tasks on Edge Devices