Skip to main content
Utility Tools are a special category of StackOne tools that help agents find and use the right tool at the right time, without overwhelming the model.
The Problem: Modern LLMs struggle when presented with too many tools in their context window. Every tool definition consumes tokens, bloats prompts, and dilutes reasoning ability.Key Issues:The Solution: More tools ≠ more capability. Without structure, they become noise. Utility Tools solve this.

Core Benefits

Scales Effortlessly

Access thousands of tools without token bloat or context overflow

Improves Accuracy

Only relevant tools exposed per request, reducing misfires and hallucinations

Account-Aware

Only returns tools relevant to configured Account IDs, respecting auth and governance controls

Composable

Works with unified actions (HRIS, ATS, LMS, Documents, IAM)
Utility tools enable AI agents to dynamically discover and execute the right tools without hardcoding tool names. This is particularly useful for building flexible AI assistants that can handle various user requests intelligently.

Architecture Overview

Utility tools consist of two main functions:
  • tool_search: Searches for relevant tools based on natural language queries using BM25 semantic search
  • tool_execute: Executes discovered tools with the provided parameters

How It Works

Benefits

  • Dynamic Discovery: No need to hardcode tool names or maintain static lists
  • Multi-Tenant Ready: Agents adapt to available integrations per customer
  • Natural Language: Search tools using descriptive queries
  • Intelligent Routing: BM25 algorithm finds the most relevant tools automatically

Python Implementation

In the Python SDK, utility tools are implemented using:
  • BM25S Library: Efficient BM25 implementation for semantic search
  • NumPy Integration: Fast numerical operations for score calculation
  • Pydantic Models: Type-safe data structures for search results and tool parameters
Read more: For guidance on using utility tools in Python, including advanced use cases, multi-agent workflows, and framework integrations, see Utility Tools.

Next Steps