tool_search (Anthropic)
Tool : A precise action the AI can call · requires anthropic-api
Lets Claude find the right tool among hundreds without loading all schemas upfront.
The right reflex as soon as an agent has more than twenty tools.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
When a Claude agent has hundreds of tools available, loading all their definitions into memory consumes a significant number of tokens before Claude even begins working. A typical setup combining GitHub, Slack, Sentry, Grafana, and Splunk can use around 55,000 tokens just for definitions, reducing selection accuracy and inflating every request.
Tool search solves this by letting Claude discover and load only the tools it needs, on demand, from a catalog of hundreds or thousands. Tools marked as deferred stay server-side; Claude issues a search query, the API returns up to five matching definitions, and Claude can then call the relevant tool. This approach reduces token consumption by more than 85% and keeps selection accuracy high even across thousands of tools.
This tool is aimed at developers building agents or automation pipelines with the Anthropic API who manage a tool catalog exceeding around twenty entries. It is available on Claude Haiku 4.5, Sonnet 4.5 and 4.6, Opus 4.5 through 5, Fable 5 and 5.1, and Mythos 5 and 5.1.
It is not suited to users who do not access the Anthropic API directly, nor to those whose tool catalog stays below around thirty entries, for whom direct loading remains simpler.
What it offers
- ·Regex-based search (regex variant): Claude constructs Python re.search() patterns to find matching tools, with case-insensitive matching.
- ·Natural language search (BM25 variant): Claude formulates a free-text query to search the tool catalog.
- ·Deferred tool loading: definitions marked with defer_loading: true are only injected into context when Claude discovers them through search.
- ·Up to 10,000 results per search: the limit parameter, ranging from 1 to 10,000, controls the maximum number of tools returned (default: 5).
- ·Prompt caching compatibility: deferred loading preserves the system-prompt prefix cache, as tool_reference blocks are appended inline without modifying the prefix.
- ·MCP integration: for tools from MCP servers via the MCP connector, deferred loading is configured at the mcp_toolset entry level rather than on each tool individually.
- ·Custom client-side implementation: the server-side search can be replaced with custom logic (embeddings, semantic search) by returning tool_reference blocks from a custom tool.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- api
- Host
- anthropic-api
- FR interface
- No
Security and data
- Rating
- Security: nothing to flag
- Capabilities
- readswritesexecutesnetwork
- Your data
- Data with the vendor
- Maintenance
- Active
Links and repository checked on 25 October 2026 · added on 1 January 2026
How to install tool_search (Anthropic)
pip install anthropic