This guide walks you through connecting TinyPNG to LlamaIndex using the Composio tool router. By the end, you'll have a working TinyPNG agent that can compress PNG and JPEG images, resize or convert compressed images, store results in Azure, and check your compression count through natural language commands.
This guide will help you understand how to give your LlamaIndex agent real control over a TinyPNG account through Composio's TinyPNG MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.
For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.


