tool-search
БесплатноЗапускает вложенные скриптыНе проверенSemantic tool search with embeddings for scalable tool discovery. Enables on-demand tool loading to reduce context usage by 90%+ for large tool libraries.
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
References (archive): SCAFFOLD_SKILLS_ARCHIVE_MAP.md — embedding/semantic tool discovery from everything-claude-code backend-patterns, tdd-workflow.
Tool Search Skill
Identity
Tool Search - Provides semantic tool discovery using embeddings to scale from dozens to thousands of tools with 90%+ context reduction.
Capabilities
- Semantic Tool Search: Find relevant tools based on task context
- Embedding-Based Matching: Use embeddings for accurate tool discovery
- On-Demand Loading: Load tools only when needed
- Context Efficiency: 90%+ reduction in tool definition tokens
The Problem
Traditional tool loading:
- All tools loaded upfront
- 58 tools = ~55K tokens
- Context fills quickly
- Hard to scale beyond ~100 tools
The Solution
Tool Search with Embeddings:
- Only Tool Search Tool loaded initially (~500 tokens)
- Tools discovered on-demand via semantic search
- 3-5 relevant tools loaded per search (~3K tokens)
- Total: ~8.7K tokens vs. ~77K traditional (85% reduction)
How It Works
- Initial State: Only Tool Search Tool + critical tools loaded
- Tool Discovery: Agent searches for tools based on task
- Semantic Matching: Embeddings match tools to task context
- Tool Expansion: Matching tools expanded into full definitions
- Tool Use: Agent uses discovered tools
Configuration
MCP Configuration (.claude/.mcp.json)
{
"betaFeatures": ["advanced-tool-use-2025-11-20"],
"toolSearch": {
"enabled": true,
"autoEnableThreshold": 20,
"defaultDeferLoading": true
},
"mcpServers": {
"repo": {
"deferLoading": true,
"alwaysLoadTools": ["search_code", "read_file"]
},
"github": {
"deferLoading": true,
"alwaysLoadTools": ["create_pull_request", "get_issue"]
}
}
}
Always Load Critical Tools
Keep 3-5 most-used tools always loaded:
- Core file operations:
read_file,write_file,search_code - Essential integrations:
create_pull_request,get_issue - Frequently used:
take_screenshot,navigate_page
Usage Patterns
When to Use Tool Search
Most Beneficial When:
- Tool definitions consuming >10K tokens
- Tool library has 10+ tools
- Experiencing tool selection accuracy issues
- Building MCP-powered systems with multiple servers
Less Beneficial When:
- Small tool library (<10 tools)
- All tools used frequently in every session
- Tool definitions are compact
Tool Discovery
Agent Workflow:
- Agent needs capability (e.g., "create a pull request")
- Agent searches: "github pull request creation"
- Tool Search returns:
create_pull_requesttool - Tool expanded into full definition
- Agent uses tool
Example:
User: "Create a pull request for my changes"
Agent searches: "github pull request creation"
Tool Search finds: create_pull_request tool
Tool loaded and used
Best Practices
1. Clear Tool Names and Descriptions
Good:
{
"name": "search_customer_orders",
"description": "Search for customer orders by date range, status, or total amount. Returns order details including items, shipping, and payment info."
}
Bad:
{
"name": "query_db_orders",
"description": "Execute order query"
}
2. System Prompt Guidance
Add guidance in agent prompts:
You have access to tools for Slack messaging, Google Drive file management,
Jira ticket tracking, and GitHub repository operations. Use the tool search
to find specific capabilities when needed.
3. Keep Critical Tools Always Loaded
Don't defer loading for:
- Core file operations
- Essential integrations
- Frequently used tools
4. Monitor Tool Usage
Track which tools are discovered:
- Most searched tools
- Tool discovery patterns
- Context savings achieved
Implementation
Embedding-Based Tool Search
The tool search uses embeddings to match tools to queries:
- Tool Indexing: Create embeddings for all tool definitions
- Query Embedding: Create embedding for user query
- Similarity Search: Find tools with similar embeddings
- Tool Expansion: Load matching tools into context
Tool Search Tool
The Tool Search Tool itself:
- Searches tool library semantically
- Returns relevant tools based on query
- Expands tools into full definitions
- Maintains tool index
Benefits
Context Efficiency
- 85% reduction in tool definition tokens
- 52.5% total context (down from 87%)
- Within optimal range (60-70% target)
Improved Accuracy
- 11% improvement in tool selection accuracy
- 79.5% → 88.1% (Opus 4.5)
- Better tool matching for complex queries
Scalability
- Scales to thousands of tools
- No context limit concerns
- Dynamic tool discovery
Examples
Example 1: GitHub Operations
User: "Create a pull request"
Agent workflow:
1. Searches: "github pull request creation"
2. Tool Search finds: creat
Установить tool-search в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteGrepGlobВложенные файлы
FAQ
Что делает скилл tool-search?
Semantic tool search with embeddings for scalable tool discovery. Enables on-demand tool loading to reduce context usage by 90%+ for large tool libraries.
Как установить скилл tool-search?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tool-search запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub