Skip to content
Ado· @adocomplete · X·Top PickAI score68

Claude Code cuts multi-server MCP definition overhead by over 85% with tool_search_tool_bm25

AI brief

Ado Kukic walks through a two-line change for Claude context management: add tool_search_tool_bm25_20251119 (natural language queries) or its regex variant, and set defer_loading: true on rarely used tools.

Why it matters

The original post lays out the exact two-line configuration and the token savings figures, so readers can apply it directly to their own multi-server MCP setups.

Full text · Original

Two lines of change: add tool_search_tool_bm25_20251119 (plain language queries) or the regex variant, then set defer_loading: true on everything you rarely use.

Claude's context starts with just the search tool. It searches names, descriptions and argument names, and the API expands up to 5 matches in place by default. Per the docs, a typical five server MCP setup burns about 55k tokens on definitions before any work, and search usually cuts that by over 85 percent. Selection stays sharp too, since accuracy drops past 30 to 50 loaded tools.

Source: Ado · x.com