Tweet by mattshumer_

September 26, 2025

This is an awesome approach to using MCP servers. We need more people to pay attention to this. Basically, convert a MCP spec into code functions, and have the model write code to call the functions, instead of typical tool-caling. I’ve been doing this with Python for a long time now... you always want to lean into what the model is good at, and obviously, models have seen FAR more code than they have tool calls. Plus, code can orchestrate calls in more complex ways than pure tool-calling can... for example, instead of doing 50 calls to the same tool over and over with different arguments, a model can just write a for loop and do it with way fewer tokens (cheaper, faster, less context bloat!).

Author
mattshumer_
Date
September 26, 2025