Optimize your agent

Load fewer tools · a StackOne feature

Load tools when needed

Instead of sending every tool definition on every request, the agent sees a search tool and loads the few definitions a task needs. StackOne's Tool Gateway MCP does this with Advanced Tool Search, on by default; several harnesses also offer their own tool search for tools defined in code.

3.8x cheaper per request than loading every tool, across 824 tasks; Anthropic reported over 85% fewer tool-definition tokens with its tool search. StackOne benchmark

Checked on the vendor's pages 30 Nov 2026

Where it fits

Building my own agent Fits

Tool Gateway MCP, or the SDK's own tool search.

Add https://mcp.stackone.com/mcp; Advanced Tool Search is on by default

Using a coding agent Fits

Claude Code and Cursor do it by default.

Add https://mcp.stackone.com/mcp; Advanced Tool Search is on by default

Using an enterprise assistant Fits

One Tool Gateway MCP server exposes two tools.

Add https://mcp.stackone.com/mcp; it exposes 2 tools and finds the rest

Using a workflow tool Fits

One MCP server with Advanced Tool Search in n8n.

MCP Client Tool pointed at https://mcp.stackone.com/mcp

The setting in each harness

Read on each vendor's own page, linked next to the setting.

HarnessSetting
Claude API and Agent SDK

defer_loading: true on your tools, plus the tool_search_tool_bm25_20251119 tool

platform.claude.com, read 30 Nov 2026
OpenAI Responses and Agents SDK

defer_loading on your tools with the tool search tool (gpt-5.4 and later)

developers.openai.com, read 30 Nov 2026
Vercel AI SDK

toolSearch() with deferLoading on your tools

ai-sdk.dev, read 30 Nov 2026
Mastra

ToolSearchProcessor

mastra.ai, read 30 Nov 2026
Pi
On by default

MCP tools default to codemode exposure, so scripts find them with searchTools() instead of every tool loading up front

github.com, read 30 Nov 2026
Claude Code
On by default

Tool search defers MCP tools (ENABLE_TOOL_SEARCH, auto:N to tune)

code.claude.com, read 30 Nov 2026
Cursor
On by default

Dynamic context discovery gives the agent tool names and loads definitions from files

cursor.com, read 30 Nov 2026
Codex
On by default

Models with tool search defer MCP tools and find them with BM25

github.com, read 30 Nov 2026
OpenCode
On by default

With Code Mode on, which it is by default for MCP servers, the model finds tools with search() instead of loading them all

github.com, read 30 Nov 2026
Glean
On by default

Tool search hands agents a small set of the MCP tools that fit each request

glean.com, read 30 Nov 2026
Claude
On by default

Tool access "Auto" loads connectors as needed; "On demand" defers every connector

support.claude.com, read 30 Nov 2026

Not offered