Tool search enables AI agents to discover the right tools using natural language queries, without requiring exact action names.Documentation Index
Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
Use this file to discover all available pages before exploring further.
- Why Tool Search
- How It Works
- Benchmarks
- Examples
The Problem: StackOne manages over 10,000 actions across connectors, with some containing 2,000+ actions. Loading all of them into an LLM’s context window is not practical:
- Token bloat: every tool definition consumes tokens, leaving less room for reasoning
- Accuracy drops: LLMs make worse tool selections as the candidate set grows
- Provider caps: OpenAI caps function definitions at ~128 per request
Key Features
Scales to Thousands of Tools
StackOne has 10,000+ actions. Search returns only the relevant ones for each query.
Improves Accuracy
Only relevant tools exposed per request, reducing misfires and hallucinations.
Account-Aware
Filters results to tools available for configured account IDs, respecting auth boundaries.
Framework-Ready
Returns a Tools collection with converters for OpenAI, LangChain, Vercel AI SDK, and more.
Quick Example
Two Approaches
- Search & Execute (recommended)
- Pre-filtered
Give the LLM 2 tools — it discovers and runs actions on demand.Instead of pre-filtering, you give the LLM
tool_search and tool_execute. The LLM searches for relevant tools, reads their parameter schemas, and executes them within its own reasoning loop.Best for:- Open-ended assistants (“help me with any HR task”)
- Large tool catalogs where pre-filtering is impractical
- When you don’t know which tools will be needed upfront
- Minimal token overhead — always 2 tools regardless of catalog size
| Aspect | Search & Execute | Pre-filtered |
|---|---|---|
| Tools sent to LLM | Always 2 (tool_search + tool_execute) | Filtered set (5-20) |
| Token cost | Constant | Scales with number of tools |
| Discovery | LLM discovers on-demand | You search upfront |
| Use case | Open-ended, exploratory | Constrained, known tasks |
Architecture Overview
Flow:- User sends a natural language query to your AI agent
- Agent calls Search Tools to find relevant actions
- Search Tools discovers available connectors and tool schemas via MCP, then ranks actions via the Semantic Search API
- Search results are matched to MCP tool definitions, sorted by relevance
- Agent receives a ranked
Toolscollection - Agent calls
execute()on the selected tool
Next Steps
- Tool Search for full API reference and all three methods
- Basic Usage for fetching and executing tools
- Tool Filtering for glob pattern filtering