Redis Iris Context Gateway: agents search for their tools

A test posted on X shows Redis Iris's Context Gateway cutting an agent's input tokens 70% by letting it search for tool definitions instead of loading all 90.

An agent wired to many MCP servers can resend hundreds of kilobytes of tool definitions on every model call. @_avichawla posted a test on Nov 29, 2026 in which Redis's Context Gateway cut that overhead by letting the agent look tools up on demand. Context Gateway is part of Redis Iris, Redis's suite of context services for agents, and gives agents one MCP endpoint for the tools of any connected MCP server plus your Redis data.

In what the post calls search mode, the agent starts with two tools: search_tools, which finds matching definitions in the gateway's catalog, and run_tool, which routes the chosen call to the underlying server. A support-ticket question pulls only ticket tools; if the next step needs billing, the agent searches again. With 90 synthetic tools across support, CRM and billing, the post reports 241.7 KB of definitions per call on the direct path against 1.1 KB for the two gateway tools, and 90,941 versus 28,606 input tokens for the full turn, about 70% fewer including discovery and tool results.

That is one author's run on synthetic tools. The Iris docs page describes the single endpoint but doesn't document search mode, its latency, or what happens when a search finds nothing. A guide from RPABOTS.WORLD lists Context Gateway as generally available since Redis's Nov 4 expansion, while Lens and Agent Mesh remain beta.

The pattern itself is familiar. Anthropic, OpenAI and now Google ship model-side versions behind a defer_loading: true flag, and PPC Land notes that Anthropic's 85% and OpenAI's 47% savings come from each company's own tests and can't be compared directly. Our read: a gateway does the lookup in front of any model, while those flags tie you to one vendor's API. The cost catch likely carries over. Google's documentation, as THE D[AI]LY BRIEF reports, recommends static loading below 20 stable tools and warns that with very long contexts searching every turn can cost more. The post measured a single question; how search mode behaves over a long, many-tool session is the number it doesn't give.

Try it: pick your agent with the most tools and log input tokens for one full turn with every definition loaded. Then rerun the same question with only the tools it actually called; if the gap is large, search-based discovery through a gateway or a model-side flag is worth a staging test.

Sources