Agents
SelectheBestTool — Agent Architecture for Tool Selection
An agent architecture that selects the best tool for a user query via filtering and semantic scoring.

An agent architecture (with a simple custom MCP server) where a main agent that knows nothing about tools declares its intent dynamically, and the system finds the appropriate tool. It has three core components: the Main Agent, a Tool Registry that stores tool schemas in JSON, and a Tool Selector that bridges the two.
Highlights
- An Intent Parser extracts keywords, category, action and target from the query.
- A Capability Scorer combines exact, partial, category, description and semantic matching (HyDE or standard semantic search).
- Parameter validation (types, enums, regex) plus a low-confidence fallback mechanism.
- Automatically discovers tools from the
tools/directory via a ToolAutoLoader. - Compares standard semantic search against HyDE for tool retrieval.
- Agents
- Tool Selection
- HyDE
- ChromaDB
- OpenAI