View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/search_tools.py
SearchToolsTool
ToolSearchEngine
method search
Search for tools that match the query using semantic search.ParametersReturnsThe search queryNumber of top results to return
Signaturelist of tuples containing (tool, server_name, score)
method search_tools
Search for tools across all MCP servers using semantic search.ParametersReturnsThe search query to find relevant toolsNumber of top results to returnName of the currently active server (for highlighting)
SignatureString with formatted search results
ToolSearchInput
method init
Create a new model by parsing and validating input data from keyword arguments.Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self is explicitly positional-only to allow self as a field name.ParametersSignatureParameter value