---
type: "post"
id: "deferred-tool-loading-make-your-agent-62-5-7f6642"
slug: "deferred-tool-loading-make-your-agent-62-5-7f6642"
title: "Deferred tool loading: Make your agent 62.5% cheaper without changing your model or harness"
description: "Baseten says its Model APIs now support deferred tool loading for DeepSeek, Kimi, and GLM, letting an agent search for tools before loading their full schemas."
retrieval_nugget: "Baseten says its Model APIs now support deferred tool loading for DeepSeek, Kimi, and GLM, letting an agent search for tools before loading their full schemas. In Claude Code tests, the company reports lower cost and faster task completion on average, while one benchmark with many tool calls favored eager loading instead."
published_at: "2026-11-20"
updated_at: "2026-11-20"
record_date: "2026-11-20"
date_kind: "published_at"
topics: ["claude","claude-code"]
entities: ["Baseten","Baseten Model APIs","DeepSeek","Kimi","GLM","Claude Code","Slack","Notion"]
related_patterns: ["agent-economics-moves-to-completed-work"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://www.baseten.co/blog/deferred-tool-loading-without-changing-model-harness"
source_urls: ["https://www.baseten.co/blog/deferred-tool-loading-without-changing-model-harness"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:deferred-tool-loading-make-your-agent-62-5-7f6642"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/deferred-tool-loading-make-your-agent-62-5-7f6642/","markdown":"https://newruntime.com/posts/deferred-tool-loading-make-your-agent-62-5-7f6642.md","json":"https://newruntime.com/posts/deferred-tool-loading-make-your-agent-62-5-7f6642.json"}
markdown_url: "https://newruntime.com/posts/deferred-tool-loading-make-your-agent-62-5-7f6642.md"
---

# Deferred tool loading: Make your agent 62.5% cheaper without changing your model or harness

## Retrieval answer

Baseten says its Model APIs now support deferred tool loading for DeepSeek, Kimi, and GLM, letting an agent search for tools before loading their full schemas. In Claude Code tests, the company reports lower cost and faster task completion on average, while one benchmark with many tool calls favored eager loading instead.

## Summary
Baseten says its Model APIs now support deferred tool loading for DeepSeek, Kimi, and GLM, letting an agent search for tools before loading their full schemas. In Claude Code tests, the company reports lower cost and faster task completion on average, while one benchmark with many tool calls favored eager loading instead.

## What happened
Baseten’s November 19, 2026 announcement describes deferred tool loading as just-in-time retrieval of tools, a form of progressive disclosure. In eager loading, every registered MCP server or plugin contributes its full tool list and schemas to the system prompt on each request. Baseten says this can add substantial context even when a task uses few or none of those tools. In its example, three registered MCP servers—Slack, Notion, and Baseten—added about 141,000 tokens of tool-call schemas to the system prompt on every request.

With deferred loading, the initial request instead includes tool names and a `tool_search` tool, about 1,300 tokens in the example. When the model needs a tool, it calls `tool_search`; the client returns matching tool references, and the server renders the relevant full schema inline at the end of the transcript. The model can then call the actual tool. Baseten says keeping that schema out of the system prompt preserves the shared prefix of the KV cache across requests. Its explanation is that each generated token attends to the cached context, so a smaller context can reduce compute and serving time.

The implementation is not simply client-side filtering. Baseten says the full schema is rendered after the shared prefix rather than inserted back into the system prompt. That distinction matters because subsequent turns can reuse the cache built from the compact prefix, while the selected schema and later conversation are appended. The company compares the design to lazy loading in web development: resources are not brought into the working context until they are required.

Baseten says it added this support for open models DeepSeek, Kimi, and GLM on Baseten Model APIs, in Chat Completions and Messages API formats. The company notes that coding harnesses including Codex and Claude Code turn deferred loading off when configured to use a third-party open-model provider, so teams need to check both harness and server-side gateway support. Baseten’s stated use case is restoring the behavior when running these tools through its APIs.

For its evaluation, Baseten sampled 55 tasks across eight benchmarks and ran them headlessly in Claude Code with GLM 5.3, comparing eager and deferred loading. Coding tests used Terminal-Bench, SWE-bench Verified, SWE-bench Pro v2, and DeepSWE v1.1; they registered Slack, Notion, and Baseten MCPs. Agentic tests used MCP-Atlas, AutomationBench, ComplexMCP, and Toolathlon-GYM, with the tools included natively in each benchmark. Baseten reports that coding tasks were 62.5% cheaper and 26.2% faster on average; agentic tasks were 51.1% cheaper and 14.9% faster.

Baseten also identifies a boundary to the result. In Toolathlon-GYM, where tasks averaged 68 tool calls, eager loading was more efficient. DeepSWE and MCP-Atlas were slightly slower under deferred loading, according to the announcement, although Baseten judged the cost savings to outweigh those small time changes. The company says savings increase when more or bulkier MCPs are registered and when a task requires more requests to finish.

## What the archive adds
New Runtime covered Vectorize’s Hindsight models and hosted inference API on [November 3, 2026](https://newruntime.com/posts/vectorize-releases-hindsight-models-open-weight-decision-rerank-d1b303/). That was a new model and memory-system release; Baseten’s announcement is a new fact on the broader question of how agent systems manage context and cost, not a restatement of that launch.

## Trend signal
This supports the pattern that [agent economics moves to completed work](https://newruntime.com/patterns/agent-economics-moves-to-completed-work/): Baseten measures cost and elapsed time per benchmark task rather than presenting token prices alone. The result is particularly relevant because reducing irrelevant tool schemas can change the economics of an existing harness without changing its model. The exception in Toolathlon-GYM also shows that task shape and tool-call count matter to the cost-per-completed-task comparison.

## Why it matters
Tool schemas can quietly become a large recurring cost in agent workflows. If every request carries the definitions of dozens or hundreds of tools, a team may pay the context and attention cost even when a task uses only a small subset. That cost is especially easy to overlook because adding an MCP server can feel like a local configuration decision, while its schemas can affect every later request.

Deferred loading offers a specific lever for MCP-heavy systems: preserve a compact initial context and disclose full schemas when the agent asks for them. It changes the tool-discovery contract rather than requiring teams to replace their model or rewrite their harness. For teams already using a gateway to move between model providers, that makes server-side support a practical deployment consideration alongside model quality and token price.

The reported savings could make existing workflows cheaper without a model migration or a new harness. But deferred loading adds a discovery step, and the result depends on how often an agent searches and calls tools. Teams should measure cost and end-to-end time on their own task mix, rather than treating the headline averages as guaranteed savings. The Toolathlon-GYM result is a useful warning that frequent tool calls can reverse the trade-off.

## Limits and uncertainty
These are results reported by Baseten, the provider adding support, and are not an independently verified comparison. The announcement gives aggregate averages across 55 sampled tasks but does not establish how representative that sample is of production workloads, nor does it report confidence intervals, per-benchmark results, or absolute dollar costs.

The reported outcomes use GLM 5.3 in Claude Code; results may differ with other models, harnesses, gateways, tool inventories, or task distributions. The source identifies Toolathlon-GYM’s 68 tool calls as the case where eager loading was more efficient, but does not give a general threshold at which eager loading becomes preferable. It also does not independently evaluate whether tool search affects task correctness or tool-selection quality.

## Skill to build now
Inventory the schemas injected into one production agent run this week. Split tools into those needed almost every turn and those used only for particular tasks, then benchmark eager and deferred modes against the same task set. Record initial-context tokens, total task cost, wall-clock completion time, tool-search calls, and success rate. Include at least one workload with repeated tool calls; Baseten’s Toolathlon-GYM result shows that a loading strategy that wins on sparse tool use may lose in dense tool loops.

## Reader takeaway
When an agent has many registered tools but uses only a few per task, deferred loading may reduce repeated context and lower task cost. Test it against eager loading with your own MCPs and workloads, and include high-call-count tasks in the comparison: the best loading strategy depends on how the agent actually uses tools.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
