Contra - A professional network for the jobs and skills of the futureHow I reduced our AI agent's input context by ~90%. Before optimizing MCP in Webito, our agent re...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
How I reduced our AI agent's input context by ~90%.
Before optimizing MCP in Webito, our agent received all 96 tools and their schemas upfront — around 13–14K input tokens before it could even start working.
I changed the MCP architecture so the agent first discovers available tools, then fetches the full schema only when it actually needs one.
Result: roughly 14K → 1.5K input tokens per iteration.
The interesting question is: what happens when you have 5,000 tools?
At that scale, semantic search starts making much more sense for tool discovery.
I wrote more about the architecture and trade-offs in my Medium article.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started