How do I handle tool discovery when I don't know what tools are available?¶
Use the Dynamic Tool Discovery feature:
-
In your agent code:
# Let your agent discover tools autonomously tools = await intelligent_tool_finder( natural_language_query="I need to get stock market data", session_cookie=session_cookie, top_n_tools=3 ) # Then invoke the discovered tool if tools: result = await invoke_mcp_tool( server_name=tools[0]["service_path"], tool_name=tools[0]["tool_name"], arguments={"symbol": "AAPL"}, # ... auth parameters ) -
Configure your agent with tool discovery capabilities as shown in the Dynamic Tool Discovery guide.
Related Documentation¶
- Dynamic Tool Discovery -- complete guide with configuration details
- AI Registry Tools -- available registry tools for agents