Skip to main content

Overview

The StackOne MCP endpoint supports two tool registration modes controlled by the tool-mode query parameter:

Individual Mode (Default)

When tool-mode is omitted or set to individual, StackOne registers each enabled action as its own MCP tool (e.g., bamboohr_list_employees, ashby_list_jobs). This is the right choice when:
  • Your integration config has a small, focused action set
  • You want the LLM to see every available tool upfront
  • Your MCP client supports large tool lists without performance degradation

Search & Execute Mode

Instead of registering one tool per action, search_execute mode exposes exactly two tools: For example, for a BambooHR account the tools would be bamboohr_search_actions and bamboohr_execute_action.

Why use this mode?

A typical integration exposes hundreds of actions. Sending every tool definition to the LLM on every request:
  • Consumes significant context window tokens
  • Can slow down tool listing in the client
  • May exceed context limits for models with smaller windows
Search & execute mode keeps the token footprint constant (two tools) regardless of how many actions the integration supports. The agent first calls search_actions with a natural language description of what it wants to do, then calls execute_action with the returned action_id.

How the agent flow works

The search tool accepts:
  • query (required) — natural language description of the task
  • top_k (optional, default 10, max 50) — number of results to return
The execute tool accepts:
  • action_id (required) — the action_id returned by the search tool
  • path (optional) — path parameters (e.g. { "id": "emp_123" } for a get-by-id action)
  • query (optional) — query parameters (filters, pagination, etc.)
  • body (optional) — request body for create/update actions
  • headers (optional) — additional HTTP headers
The agent must call search_actions first to discover valid action_id values before calling execute_action. Do not assume or hardcode action IDs — they are discovered at runtime based on what is enabled for your account.

Example: Enable in Claude Desktop

Add ?tool-mode=search_execute to the MCP URL in your client config:

Example: Enable in Claude Code

Example: Enable via direct HTTP


Combining with Param Style

tool-mode can be combined with the param-style query parameter to control how tool input schemas are structured:
Both parameters are independent — you can use either, both, or neither.

Choosing the Right Mode

Search & execute mode uses semantic search over your enabled actions. For best results, write queries that describe the business task rather than the technical operation — e.g., “find employees hired this year” rather than “list employees filtered by start date”.