Yehor Hrabovskyi has released Switchboard, an open-source tool designed to solve the 'context bloat' problem plaguing AI agents connected to multiple MCP servers. Instead of loading hundreds of tool definitions into the agent's context window at startup, Switchboard presents just five generic toolsβ€”search, describe, read, write, and moreβ€”dramatically reducing token consumption before the agent even begins processing a task.

The Token Tax on AI Agents

The core issue Switchboard addresses is the silent cost of tool discovery. In a typical setup, an agent connected to various MCP servers (like GitHub, Telegram, or local homelab tools) must ingest every tool's name, description, and input schema. On Hrabovskyi's own setup, 184 tools across seven servers consumed 53,908 tokens just to define capabilities. Switchboard reduces this to 779 tokens for the initial search and description phase, a 98.6% reduction in pre-task overhead. The tool uses BM25 ranking to find relevant tools dynamically, only pulling specific schemas when needed.

Human-in-the-Loop Write Approvals

Beyond token savings, Switchboard introduces a security layer for write operations. Any tool call marked as 'write' or 'destructive' is paused and sent to a Telegram bot for human approval. The approver sees every argument the agent intends to send, including zero-width and bidi characters displayed as visible escapes to prevent injection attacks. Approvals are single-use and bound to the exact arguments shown; if the timeout (default 50 seconds) expires or the user denies the request, the call fails. This ensures that no agent can silently modify state without explicit human consent.

Measurement and Implementation

The project includes a CLI command, switchboard measure, which analyzes existing MCP client configurations (supporting Claude Code, Cursor, and others) to estimate token costs. It calculates tokens based on character count divided by four for tool names, descriptions, and schemas. The repository is active, with 91 offline tests and a smoke test against a real agentgateway. Users must note that pip install switchboard fetches an unrelated PyPI project; the correct installation method is via Docker container or direct clone.

Key Takeaways

  • Switchboard reduces tool definition token usage from ~54,000 to ~779 tokens in sample tests, a 98.6% saving.
  • It replaces hundreds of static tools with five dynamic endpoints (search, describe, read, write, more).
  • Write operations require explicit human approval via Telegram, with arguments displayed as visible escapes for security.
  • The tool is currently single-user, with no support for stdio transport or multiple approvers.

The Bottom Line

Switchboard is a pragmatic hack for the 'MCP bloat' era, but its reliance on Telegram for approvals limits its enterprise viability. Still, for homelab agents and solo developers, the token savings are too significant to ignore.