Thursday, December 3, 2026 | London 11°C · Overcast
DailyGlimpse

AI

Hermes Agent Introduces Tool Search to Cut MCP Context Bloat, Boosts Accuracy by Up to 49%

Nous Research unveils Tool Search for its Hermes Agent to curb excessive AI context window use.

MarkTechPost 3 min read

Hermes Agent Introduces Tool Search to Cut MCP Context Bloat, Boosts Accuracy by Up to 49%

Nous Research has released a new feature for its open-source Hermes Agent called Tool Search, designed to tackle a growing problem in AI agent systems: the excessive consumption of context windows by MCP (Model Context Protocol) tools. By loading tool schemas on demand instead of all at once, Tool Search significantly reduces token usage and improves model accuracy.

The Context Crisis

When multiple MCP servers are connected to an agent, every tool's JSON schema is sent to the model on every turn, even if only a few are needed. In a typical deployment with five servers and 34 tools, this overhead can reach 22,000 tokens per turn—about half of the total prompt size. Anthropic's internal data shows tool definitions can consume up to 134,000 tokens before any optimization, leading to higher costs (up to $0.10 per turn with cache misses) and reduced accuracy due to "decision paralysis."

How Tool Search Works

Tool Search implements a progressive-disclosure layer. Instead of flooding the model with every tool schema, it replaces MCP and plugin tools with three bridge tools:

  • tool_search(query, limit?) – searches the deferred-tool catalog
  • tool_describe(name) – loads the full schema for a single tool
  • tool_call(name, arguments) – invokes the tool after schema retrieval

A typical interaction follows a three-step sequence: the model searches for a tool, loads its schema, and then calls it. All guardrails and approval prompts remain intact, running against the real tool name.

Accuracy Gains Verified by Anthropic

Anthropic's internal MCP evaluations show dramatic improvements:

  • Claude Opus 4: accuracy rose from 49% to 74% with Tool Search enabled
  • Claude Opus 4.5: accuracy improved from 79.5% to 88.1%

The gains stem from reducing the tool catalog visible to the model, thereby eliminating confusion from irrelevant options. Anthropic also reports an 85% reduction in tool-definition token usage while retaining access to the full tool library.

Under the Hood: BM25 Retrieval

Tool Search uses BM25, a classic information retrieval algorithm, to match queries against tool names, descriptions, and parameter names. If BM25 returns no positive matches, the system falls back to a literal substring search. The catalog is rebuilt from the current tool definitions on every turn, preventing sync issues.

When Is It Active?

Tool Search operates in auto mode by default. It activates only when deferrable tool schemas would consume at least 10% of the model's context window. Below that threshold, tools are passed through directly with no overhead. The decision is re-evaluated each turn, so sessions with few tools or long-context models may never trigger Tool Search.

Configuration Options

Users can control Tool Search behavior in hermes.yaml under the tools section:

tools:
tool_search:
enabled: auto        # auto, on, or off
threshold_pct: 10    # % of context for auto activation
search_default_limit: 5
max_search_limit: 20

A simple boolean tools.tool_search: true is equivalent to {enabled: auto}.

Impact

Tool Search addresses a critical efficiency bottleneck in multi-server AI agent deployments, cutting costs and improving accuracy without losing access to any tools. It is available now in Hermes Agent.

React