Idempotent, Side-Effect-Aware Tools
Make repeated calls safe and predictable.
Models May Call Twice
An AI client can retry a tool after a timeout or a dropped link. Your tool might run twice for what the user meant once.
What Idempotent Means
A tool is idempotent when calling it again with the same input changes nothing further. The second call is safely a no-op.
All lessons in this course
- Layered Server Architecture
- Config & Secrets via Environment
- Idempotent, Side-Effect-Aware Tools
- Versioning Tools & Schemas