Skip to main content
The StackOne SDK provides glob-based filtering capabilities to help you select and manage specific tools across different SaaS platforms.

What Tool Filtering Enables

Tool filtering allows you to:
  • Select tools by provider (e.g., Salesforce, Gmail, Workday)
  • Filter by specific actions (create, read, update, delete)
  • Combine multiple patterns for precise selection
  • Exclude specific tools or patterns

Basic Filtering Patterns

By Provider

  • salesforce_* - Salesforce CRM
  • gmail_* - Gmail & Calendar
  • workday_* - Workday HCM

By Action

  • *_create_* - All create operations
  • *_list_* - All list operations
  • *_get_* - All get operations

Combined Patterns

  • hibob_list_* - HiBob list operations only
  • workday_update_* - Workday update operations only

Use Cases

  1. Cross-Domain Agents: Let assistants reliably interact with whatever tools (CRMs, ERPs, comms suites, etc.) are available for the current account
  2. Operation-Focused Tools: Create specialized agents for read-only or write operations
  3. Custom Tool Sets: Combine multiple patterns for precise control
  4. Performance Optimization: Load only the tools your agent actually needs

TypeScript Naming Conventions

Tool Name Structure

StackOne tools follow the pattern: provider_operation_entity
import { StackOneToolSet } from '@stackone/ai';

const toolset = new StackOneToolSet();

// Filter by providers
const tools = await toolset.fetchTools({
  providers: ['hibob', 'bamboohr'],
});

// Filter by actions with glob patterns
const listTools = await toolset.fetchTools({
  actions: ['*_list_*'],
});

// Get specific employee tools
const employeeTools = await toolset.fetchTools({
  actions: ['*_list_employees', '*_get_employee'],
});

Common Patterns

By Provider:
  • bamboohr_* - BambooHR
  • hibob_* - HiBob
  • workday_* - Workday
By Operation:
  • *_list_* - Get multiple records
  • *_get_* - Get single record
  • *_create_* - Create new record
  • *_update_* - Update existing record
By Entity:
  • *_employees - Employee operations
  • *_candidates - Candidate operations
  • *_contacts - Contact operations

Example

examples/fetch-tools.ts
View on GitHub →

Next Steps