Home/MCP/MCP context bloat
MCP Context

MCP context bloat

Measure and reduce MCP tool definitions before they consume the agent context window.

When to use this

  • Many servers are enabled globally
  • Tool schemas consume thousands of tokens
  • Agents pick wrong tools or ignore user intent

Implementation checklist

  • Measure schema size
  • Remove duplicate tools
  • Shorten descriptions
  • Prefer server-side search or Code Mode for large APIs

Common failure modes

  • Prompt is too long
  • Tool definitions too large
  • Wrong tool selected
  • Expensive sessions with little user work

Related tools