A Python tool to help agents discover and select the best tools for a given task.
- Search tools by description using keyword matching
- Get details for specific tools by name
- List all available tools
- Simple JSON-based tool catalog
No installation required. Python 3.6+ is needed.
python3 tool_discovery.py --query "search files" --top-n 2python3 tool_discovery.py --tool Greppython3 tool_discovery.py --listThe tool catalog is stored in tools.json with this format:
{
"tools": [
{
"name": "Grep",
"description": "Searches for patterns in files using regular expressions.",
"tags": ["search", "pattern", "regex", "file"]
}
]
}To add new tools:
- Add them to
tools.json - Run the script to test the changes
MIT License