All stories

Baseten adds deferred tool loading for open models

Baseten says loading tool schemas only when needed made Claude Code agents running open models up to 62.5% cheaper and 26.2% faster, with no change to model or harness.

Baseten announced that it has added deferred tool loading to the open models on its Model APIs, including DeepSeek, Kimi and GLM. The feature works with both the Chat Completions and Messages API formats.

Deferred tool loading keeps full tool schemas out of the system prompt. The model gets the tool names and a tool_search tool, then pulls in schemas only when it needs them. OpenAI's and Anthropic's APIs already support the technique. According to Baseten, though, Codex and Claude Code both turn it off when pointed at a third-party open-model provider. Turning it back on also requires support on the provider's gateway and inference servers.

In Baseten's example, three registered MCP servers (Slack, Notion and Baseten) added about 141,000 tokens of tool schemas to every request. Deferred loading cut that to about 1,300 tokens. When the model searches for a tool, the server adds the matching schema at the bottom of the transcript, so the cached prefix stays valid. A smaller context also reduces attention compute on every decoded token.

The company tested 55 tasks drawn from eight benchmarks, running GLM 5.3 headlessly in Claude Code with and without deferred loading. On the coding benchmarks, which used the three extra MCPs, it reported an average cost reduction of 62.5% and runs that were 26.2% faster. On the agentic benchmarks, which used only each benchmark's built-in tools, costs fell 51.1% and runs were 14.9% faster.

Baseten said deferred loading "rarely has downsides." The blog post is truncated, so its full list of conditions for the largest savings and any per-benchmark results are not available. Baseten has not published independent verification of the figures.

Sources