Tool calls that fire twice: idempotency keys before the model retries

· Community Openai · Oct. 30, 2026, 11:46 p.m.
Summary
The post discusses challenges with idempotency in API calls when using tool-using agents, highlighting issues of duplicate mutations on retries due to timeouts. It suggests a pattern of implementing client-generated idempotency keys to prevent double writes and improve logging of tool operations, ultimately aiming for better reliability in system interactions.