---
title: "Dynamic Tool Discovery (Tool Search)"
description: "Dynamic tool discovery, or tool search, is a mechanism that lets an AI agent find relevant tools at runtime instead of receiving every available tool definition in its initial context."
canonical_url: "https://promptmetheus.com/resources/llm-knowledge-base/dynamic-tool-discovery-tool-search"
---

> Index of every page on this site: [llms.txt](https://promptmetheus.com/llms.txt)

Dynamic tool discovery, or tool search, is a mechanism that lets an [AI agent](https://promptmetheus.com/resources/llm-knowledge-base/ai-agent) find relevant tools at runtime instead of receiving every available tool definition in its initial [context](https://promptmetheus.com/resources/llm-knowledge-base/context).

As an agent platform grows, it may expose hundreds or thousands of APIs, database operations, and [Model Context Protocol (MCP)](https://promptmetheus.com/resources/llm-knowledge-base/model-context-protocol-mcp) tools. Including all schemas on every request consumes tokens, increases latency, and makes tool selection less reliable. Tool search keeps a compact catalog or search interface in context and loads full definitions only for likely matches.

A typical process is:

1. The agent receives lightweight tool names, descriptions, or access to a search tool.
2. It searches using the current task and intent.
3. The system returns a small set of matching tool definitions.
4. The agent invokes one through ordinary [tool calling](https://promptmetheus.com/resources/llm-knowledge-base/tool-calling-function-calling).

Discovery may use keyword search, [vector search](https://promptmetheus.com/resources/llm-knowledge-base/vector-search), [hybrid search](https://promptmetheus.com/resources/llm-knowledge-base/hybrid-search), metadata filters, or learned routing. Access control must be applied before results are shown; search should never reveal tools the user or agent is not authorized to use.

Tool descriptions become retrieval documents and should contain distinctive capabilities, constraints, and selection criteria. Ambiguous descriptions can retrieve the wrong operation even when the search algorithm works correctly.

Dynamic discovery complements [agent skills](https://promptmetheus.com/resources/llm-knowledge-base/agent-skill). A skill provides procedural knowledge, while tool search locates executable capabilities. Both reduce context consumption through progressive disclosure.

The [Claude tool search documentation](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool) describes server-side discovery that defers loading tool definitions until they are needed.

## Sitemap

See the full [sitemap](https://promptmetheus.com/sitemap.md) for all pages.
