Skip to main content

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.

Tool search enables AI agents to discover the right tools using natural language queries, without requiring exact action names.

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

import { StackOneToolSet } from '@stackone/ai';

const toolset = new StackOneToolSet();

// Get search & execute tools. The LLM discovers and runs tools on demand
const tools = toolset.getTools();

// Convert to your framework's format
const openAITools = tools.toOpenAI();
// Pass these to your OpenAI agent

Two Approaches

AspectSearch & ExecutePre-filtered
Tools sent to LLMAlways 2 (tool_search + tool_execute)Filtered set (5-20)
Token costConstantScales with number of tools
DiscoveryLLM discovers on-demandYou search upfront
Use caseOpen-ended, exploratoryConstrained, known tasks

Architecture Overview

Flow:
  1. User sends a natural language query to your AI agent
  2. Agent calls Search Tools to find relevant actions
  3. Search Tools discovers available connectors and tool schemas via MCP, then ranks actions via the Semantic Search API
  4. Search results are matched to MCP tool definitions, sorted by relevance
  5. Agent receives a ranked Tools collection
  6. Agent calls execute() on the selected tool

Next Steps