{"slug": "combining-mcp-server-tool-calls", "title": "Combining MCP Server Tool Calls", "summary": "A developer testing MCP server tool calls in Rust found that combining 7 related functions into 1 function with a `command` argument is superior, as small models like LFM and Ling Tiny perform equally well, while Gemma 4 E4B reviews fewer tools faster, and code repair of arguments is easier.", "body_md": "Should **tool calls** be **combined** in a **MCP** (Model Context Protocol) server? It is sometimes possible to have 10 functions, or 1 function that receives a separate argument like `command`\n\n. I wanted to test both approaches in my Rust code.\n\nAfter getting an LLM to do some of the initial work, I changed 7 functions into 1 function that receives a `command`\n\nargument. Then I **tested** the new approach.\n\nI found:\n\n• Small models like LFM and Ling Tiny seem to work just as well with 1 function and an argument, as with 7 functions.\n\n• Some models like Gemma 4 E4B work better: Gemma \"reviews\" all the available tool calls when it thinks, and it is much faster to only review 4 tools instead of 10.\n\n• It is easier to use code to \"repair\" arguments in a single function in the MCP server.\n\nI feel **combining** many **related tool calls** into one is a **superior approach**. It is faster in some models, and also simplifies the code base and makes it easier to add convenience features like argument fix ups as needed (for when arguments are incorrect from the agent).", "url": "https://wpnews.pro/news/combining-mcp-server-tool-calls", "canonical_source": "https://www.dotnetperls.com/2026_8_19_combining-mcp-server-tool-calls", "published_at": "2026-08-19 07:00:00+00:00", "updated_at": "2026-08-19 15:43:31.661301+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "artificial-intelligence"], "entities": ["MCP", "Rust", "LFM", "Ling Tiny", "Gemma 4 E4B"], "alternates": {"html": "https://wpnews.pro/news/combining-mcp-server-tool-calls", "markdown": "https://wpnews.pro/news/combining-mcp-server-tool-calls.md", "text": "https://wpnews.pro/news/combining-mcp-server-tool-calls.txt", "jsonld": "https://wpnews.pro/news/combining-mcp-server-tool-calls.jsonld"}}