What
The ENABLE_TOOL_SEARCH environment variable now supports percentage-based control with the auto:N syntax.
Usage
ENABLE_TOOL_SEARCH=auto:50 # 50% tool search probability
ENABLE_TOOL_SEARCH=auto:0 # Equivalent to "tst" (always tool search)
ENABLE_TOOL_SEARCH=auto:100 # Equivalent to standard/mcp-cli modesDetails
- Values are clamped between 0-100
- Invalid values log a warning and fall back to defaults
- Provides fine-grained control over tool search behavior
Evidence
DX0() at line 292496 (auto percentage parser, contains "Invalid ENABLE_TOOL_SEARCH value", "expected auto:N where N is a number")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added auto:N syntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage (0-100)