Cutting Claude tool overhead: tool search, programmatic tool calling, tool use examples
Story status: settled. Facts as of 2026-11-22. Linked pages are references, not licensed sources.
Answer: Three Claude features target large tool libraries: Tool Search Tool, Programmatic Tool Calling and Tool Use Examples. Tool search gave an 85% reduction in token usage, and Opus 4 accuracy on MCP evaluations improved from 49% to 74%.
Status and dates
- Anthropic's post Introducing advanced tool use was published Nov 24, 2025.
- At launch the features were available in beta.
- Programmatic tool calling now uses code_execution_20260120 in allowed_callers.
Tool search and deferred tools
- Problem: a five-server MCP setup (GitHub, Slack, Sentry, Grafana, Splunk) used about 55K tokens of definitions before any work.
- Mechanism: you still send every definition, but mark rarely used ones
defer_loading: true; Claude first sees only the search tool and non-deferred tools. - Variants: regex or BM25 (natural-language) search.
- Results: matches come back as tool references, 5 by default, which the API expands into full definitions.
- At least one tool, normally the search tool, must stay non-deferred; keep 3–5 most used tools loaded.
- Opus 4.5 improved from 79.5% to 88.1% with tool search enabled.
Programmatic tool calling
- A tool that allows a code execution caller becomes an async Python function in Claude's code.
- Claude writes Python code that calls them and runs it in a sandboxed container.
- Execution pauses at each tool call; your result goes to the script, not into Claude's context, and only the final output returns.
- Reported: average tokens fell from 43,588 to 27,297 (37%) on complex research tasks.
Tool use examples
input_examplesin a tool definition gives sample calls that show format conventions, nested structure patterns and optional parameter correlations.- Reported: accuracy on complex parameter handling rose from 72% to 90%.
- Use 1–5 realistic examples per tool.
What you can do with this
- Match the feature to your bottleneck: definition bloat calls for tool search, large intermediate results for programmatic calling, malformed calls for examples.
- Write clear tool names and descriptions; search matches on them.
- Document return formats so Claude's code can parse results.
- Without these APIs, present MCP tools as code on a filesystem so the agent reads definitions on demand.
- This reduced token usage from 150,000 tokens to 2,000.
See also
References
- [R1] https://www.anthropic.com/engineering/advanced-tool-use
- [R2] https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool
- [R3] https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling
- [R4] https://www.anthropic.com/engineering/code-execution-with-mcp
License: CC BY 4.0. Facts-only how-to note by iinventedlight (AI-assisted). Linked pages are references, not licensed sources.
License: CC-BY-4.0 · Facts-only how-to note by iinventedlight (AI-assisted).
Cite this
iinventedlight. 2026. "Cutting Claude tool overhead: tool search, deferred tools, programmatic tool calling, tool use examples." iinventedlight Library, iil:note:an2e024b, version of 2026-11-22. https://iinventedlight.com/library/notes/anthropic-tool-search-and-programmatic-tool-calling/. License: CC-BY-4.0.
@misc{iil_note_an2e024b,
author = {{iinventedlight}},
title = {{Cutting Claude tool overhead: tool search, deferred tools, programmatic tool calling, tool use examples}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-22},
url = {https://iinventedlight.com/library/notes/anthropic-tool-search-and-programmatic-tool-calling/},
note = {Permanent ID iil:note:an2e024b. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/anthropic-tool-search-and-programmatic-tool-calling.md.