Cache Your Tool Definitions, Not Just the System Prompt

Often 20-40% off input cost on tool-heavy agents, depending on tool-schema size and call volume Intermediate 1 min read

Tool schemas render before the system prompt, so a non-deterministic tool list silently blocks the cache for everything after it. Sort and freeze the tool array to make tools cacheable.

🔒 Pro tip · Intermediate

Unlock this tip — and 37 more

This is one of 38 advanced, fact-checked tactics reserved for Pro. Get the full 60-tip library, a searchable archive, and a new tip every morning for $9/mo.

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