How MCP Tool Definitions Work
When you add a tool to your MCP, here’s what happens: Every tool you define sends its description and input schema to the LLM as part of the prompt. The LLM reads these definitions to decide whether to call a tool and which one. The problem: Every tool you add increases your input token count. This has two costs:- Context space — LLMs have finite context windows. More tokens in tool definitions = fewer tokens for conversation history and responses.
- Money — Input tokens cost money. Every request pays for all your tool definitions, whether they’re used or not.
The Problem: APIs vs MCPs
Most MCPs are auto-generated from OpenAPI specs with paragraphs of explanations designed for humans. Agents don’t need this. They have knowledge in their weights. A brief description + clear schema is enough.
Strategy 1: Expose Only What You Need
Your API might have hundreds of endpoints, but your MCP shouldn’t.Strategy 2: Optimize Output Size
APIs return paginated results with hundreds of items. MCPs should return minimal useful responses.Strategy 3: Design for Minimal Tool Calls
Every tool call is a round trip: AI generates → server responds → AI processes → repeat. Chain of calls = chain of tokens. BAD: Flight booking with 6 tool calls Each step: ~200-500 tokens for request + response. 6 calls = 2,000+ tokens just for the conversation flow. GOOD: One tool that handles the workflowStrategy 4: Keep Descriptions Concise
Strategy 5: Use Token Caching
MCP tool definitions are sent with every request. Cache them!
Once cached, definitions cost 1/10th to 1/100th of normal tokens.
Strategy 6: Don’t MCP Everything
Use sandbox/code execution for:- Simple calculations (no calculator MCP!)
- File conversions (PNG to JPG)
- Math operations
- Data transformations

