Guides

Reduce MCP tool definition token overhead

Reduce MCP tool-definition overhead by loading full schemas only when the agent needs them. Atlassian's mcp-compressor and on-demand discovery can cut prompt tokens. Test that the agent can still call every required tool.

Anthropic logoAnthropicAAtlassian
Editorial policy

Key takeaways

  • Loading full MCP tool schemas at the start of every turn adds input tokens to every request. On-demand discovery loads a schema only when the agent asks for it.
  • Atlassian's mcp-compressor replaces full tool definitions with a small proxy interface. Their post reports 70–97% token reduction; those figures are theirs, not ours.
  • Fewer prompt tokens are not a success if task completion falls. Measure both the baseline token count and the required-tool success rate before and after.

Reduce MCP tool-definition overhead by loading full schemas only when the agent needs them, rather than sending every definition at the start. Test that the agent can still discover and call every required tool; fewer prompt tokens are not a success if task completion falls.

MCP reduce tool overhead: on-demand discovery

On-demand discovery replaces the full tool list with a lightweight catalog or router. The agent searches for a capability, and the router returns that tool's schema. Only loaded schemas appear in the prompt.

Atlassian's mcp-compressor is an implementation of this pattern. Their blog post, published in 2026, describes replacing full tool definitions with a small proxy interface that lets the agent discover and load schemas on demand. They report 70–97% token reduction. Those figures are from their post, not an independent measurement on this site.

The trade-off is that the agent must now search before it can call. If the agent fails to find a tool, or if the proxy does not expose all servers, the task can fail in a way it would not have failed with the full list loaded up front.

Measure tokens without losing tool access

A reproducible measurement needs:

  1. A baseline. Load all tool schemas and record the input token count. Run a set of required-tool tasks and record the success rate.
  2. A discovery-enabled configuration. Enable on-demand discovery (e.g., mcp-compressor or your own router). Record the new input token count under the same prompt.
  3. The same required-tool tasks. Run the tasks again and compare the success rate. A token reduction that breaks tasks is not a reduction worth keeping.

Anthropic's code-execution-with-MCP documentation describes using MCP servers with Claude. It is an alternative context for tool-schema management, not a direct token-reduction technique, but it shows how tool configuration affects what the model sees.

The prompt and tool checker on this site counts tool-JSON tokens. Paste the schema to get a baseline, then compare against the proxy interface.

What this guide does not measure

This guide explains the on-demand discovery pattern and points to Atlassian's implementation. It does not:

  • Measure 70–97% savings as our own result. That figure is quoted from Atlassian's post.
  • Guarantee compatibility with every MCP client or server.
  • Test every required-tool scenario.

Run your own measurements before adopting a proxy pattern in production.

Sources

  1. 1AAtlassian, MCP compression: Preventing tool bloat in AI agents (blog post)
  2. 2Anthropic logoAnthropic, Code execution with MCP (documentation)
  3. 3MModel Context Protocol, Tools specification 2025-06-18 (read November 10, 2026)
  4. 4AAI Agents Info, Why tool JSON costs more than your system prompt

Guides

Claude Fable 5.2 vs GPT-6 Astra for Coding Agents

Claude Fable 5.2 leads Anthropic’s November 9, 2026 coding-agent table: 49.1% on FrontierCode 2.0 at Xhigh effort and 69.9% on FrontierSWE v2, ahead of GPT-6 Astra and Claude Opus 5.5. Opus 5.5 costs half as much per token, and Anthropic still says to start most coding there. Gemini 4 Carbon leads AutomationBench and has no id on the Gemini API model list read November 10.

November 10, 2026 · 20 min read

Guides

How to Use Claude Fable 5.2 in an Agent Harness

Point the harness at claude-fable-5-2. The Messages API defaults to high effort; Claude Code defaults Fable 5.2 to medium until you set it, and the model needs Claude Code v2.1.321 or later. A turn of 50,000 input tokens and 15,000 output tokens is $1.00 at the $8 and $40 rates.

November 10, 2026 · 21 min read