In short.
Manage tool context is a Claude documentation guide for developers managing agents with many tools or long conversations, but it leaves detailed integration requirements and total costs unspecified. It distinguishes tool definitions loaded before use, intermediate tool outputs, repeated input charges and obsolete conversation results. Its main value is matching each problem to an appropriate technique and explaining how the techniques can work together. Performance gains, compatibility and realized savings are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied documentation page at the exact selected .md address, including its comparison, mechanism descriptions, combined-use guidance, cost claim and next-step links. Linked pages and their requirements, pricing, examples and notices are excluded. No license or redistribution notice appears in the supplied page. Runtime behavior, compatibility, performance and realized costs are untested.
The overview
identity
Manage tool context is a documentation page about controlling the context consumed by Claude tool definitions and tool results. Context is the information available to the model within a request; the page explains that tool schemas and accumulated results can fill it before an agent finishes its task.
The supplied source address is [https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context.md]. The page also identifies its documentation URL as [https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context].
assessment
The guide is useful for deciding which kind of context problem to address first. Its strongest distinction is that reducing repeated input charges and reducing the amount of information in context are different goals.
It offers a practical comparison and a suggested adoption sequence, but no complete request examples, benchmarks or implementation walkthrough. A developer can use it to choose a direction; successful integration and workload-specific benefits remain unassessed.
users
The intended readers are developers building Claude applications that call tools, particularly agents with large tool catalogs, repeated chains of calls or long conversation histories. The page suggests considering tool search at 10 or more tools, or earlier if upfront context consumption becomes noticeable.
Beginners get a plain explanation of four approaches. Experienced developers get a way to distinguish schema overhead, intermediate outputs, repeated input costs and stale history, although API-level implementation details are limited.
capabilities
The page describes tool search for loading tool definitions when needed, programmatic tool calling for keeping intermediate results out of conversation history, prompt caching for reducing repeated input charges, and context editing for removing obsolete tool results.
It also explains that these techniques can be combined because they address different sources of pressure. It provides no measured context reduction, latency improvement or spending reduction.
Using it
requirements
The described approaches assume an application using Claude tools. Tool search requires deferred tool definitions and a search tool; programmatic tool calling uses Anthropic's code execution sandbox; caching benefits repeated stable definitions; context editing applies to accumulated tool results.
Supported models, API and SDK versions, account eligibility, authentication requirements, quotas and regional availability are not specified.
mechanism
Tool search marks definitions with defer_loading: true and lets Claude discover them as needed. The page describes an extra discovery turn as the latency tradeoff for loading fewer definitions upfront.
Programmatic tool calling lets Claude write a script that invokes multiple functions inside Anthropic's execution sandbox. Intermediate results stay out of conversation history, reducing tool-result exchanges.
Prompt caching reuses a stable input prefix at a lower repeated-input cost while retaining those tokens in context. Context editing instead removes older tool_result blocks once their information is no longer relevant.
setup
The page recommends starting with caching for stable tool definitions, adding tool search when the catalog reaches roughly 10 tools or upfront usage becomes significant, and introducing context editing as old results lose relevance. Programmatic calls are suggested for repetitive chains of small calls that suit a script.
For tool search, it explicitly names defer_loading: true and adding a tool search tool. Complete request structures, cache configuration, context-editing rules and sandbox integration instructions are absent.
example
Consider a hypothetical agent with 50 available tools and repeated sequences of five small calls. Following the guide, it could discover relevant tool definitions on demand, cache stable definitions that remain in requests, and execute suitable call sequences through one script. As the conversation grows, obsolete tool results could be removed.
This illustrates how the approaches could combine. No implementation was executed, and no token savings, latency or task-completion result was measured.
Assessment & evidence
limitations
Prompt caching alone cannot relieve context-window exhaustion. Tool search adds a discovery turn. Programmatic calling is presented for chains suitable for scripting, and context editing depends on recognizing when earlier results are no longer useful.
The page does not explain error handling, cache invalidation, script execution limits or safeguards against removing information needed later. It supplies no evidence about answer quality or task completion after applying these techniques.
reasoning
The useful decision rule is to identify which material causes the problem. Large upfront schemas suggest tool search; stable repeated input suggests caching; intermediate outputs suggest programmatic calling; obsolete history suggests context editing.
This mapping follows the page's explanation of each mechanism. It supports choosing an approach, but does not establish which combination will perform best for a particular agent.
alternatives
The four approaches are the alternatives compared within this page. Tool search changes when definitions enter context; programmatic calling changes how intermediate results are handled; caching changes repeated-input billing; editing changes what remains in history.
They can complement one another. The page does not compare other providers, libraries or context-management architectures, so relative suitability outside these Claude features is unknown.
evidence
The evidence is the complete supplied Manage tool context page at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context.md].
The page provides feature descriptions, tradeoffs and recommendations. It contains no benchmark methodology, execution logs or measured examples. Linked feature documentation is outside the supplied evidence.
Access & freshness
costs
The page states that cache writes carry a 25 percent markup over base input pricing and says this pays back on the second request that hits the cache. It also states that caching lowers repeated-input charges without reducing context occupancy.
Absolute token prices, cache lifetime, cache-hit rates, execution charges and tool-search charges are unspecified. Total operating cost and workload-specific savings are unknown.
rights
The supplied page contains no license statement, redistribution permission or service terms. Rights to redistribute its text and the contractual conditions for using the described features are unknown from this evidence.
freshness
The supplied snapshot was captured on 24 November 2026 at 15:17:48.415 UTC. The page itself gives no publication date, last-updated date or feature-version information.
The capture time identifies the snapshot's age, but does not establish current model support, pricing or API compatibility.
actions
Identify whether your application's main problem is upfront definitions, intermediate results, repeated input charges or obsolete history. Use that diagnosis to choose an initial approach, then measure context usage, latency, task completion and cost on representative work.
For implementation details, the page points to tool search [https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool] and programmatic tool calling [https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling].
It also points to prompt caching [https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching] and context editing [https://platform.claude.com/docs/en/build-with-claude/context-editing]. These linked pages have not been assessed here; confirm requirements and applicable pricing before implementation.
