Call Tools as Code, Not by Injecting Every Tool Definition

Often 35-85% fewer input tokens on tool-heavy agents; scales with how many tools you load and how large your intermediate results are Advanced 3 min read

Default MCP setups load every tool's JSON schema into the prompt on every turn and round-trip each intermediate result back through the model. Let the agent search for the few tools it needs and orchestrate them in code instead.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 50 more

This is one of 51 advanced, fact-checked tactics reserved for Pro. Get the full 73-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.