Stop Giving Your Agent Every Tool

· 9:10
tool-search tool-use mastra agent-architecture context-engineering

Large tool catalogs break agent context. Tool search fixes that by letting agents discover and load only what they need.

I walk through the tool-context problem I hit in Emma, the Anthropic tool-search pattern for large tool surfaces, and why I replaced my custom version with Mastra’s built-in ToolSearchProcessor. You’ll see the full search, load, and call loop in Mastra Studio, from an agent with no direct tools to a targeted tool invocation.

Building an AI agent?

I help teams design and ship agentic systems — from architecture to production.

See how I can help

Get new videos and posts by email

Weekly videos on AI engineering, plus deeper dives in the newsletter.

Occasional emails, no fluff.

Powered by Buttondown