# What should a Claude tool executor do when a write times out?

Exam: CCAR-F — Claude Certified Architect - Foundations (CCAR-F)
Knowledge domain: Tool Design & MCP Integration
Updated: 2026-11-25T09:22:57.846174+00:00
HTML: https://learningpathx.com/faq/CCAR-F/ccarf-retry-claude-tool-write-safely.html

## Also asked as

- How can I retry a timed-out Claude client tool without duplicating a write?
- How do I recover when an external write requested by Claude might already have succeeded?

Treat a timed-out write as an unknown outcome if the destination may have received it. Check the destination using the recorded operation ID or idempotency key before retrying. Retry only within a defined budget and when the destination enforces deduplication or an equivalent idempotency guarantee for the same intended operation. If you cannot establish the outcome or a safe retry contract, escalate.

Assign the key before submission and reuse it for retries of the same business operation. Keep the Claude `tool_use` ID as a separate trace field because a later model attempt can have a different ID. Confirm that the destination recognizes the key and records the effect with the deduplication state. Check the destination again afterward and report whether the operation was accepted, completed, or still uncertain.

Use bounded retries for transient failures on safe reads. Stop on permanent validation or authorization failures. Make retry and uncertainty behavior explicit in the interface and runbook. Apply executor-side timeouts and audit logging so a model's response to a tool error cannot turn into repeated writes or charges.

[Handle tool calls](https://platform.claude.com/docs/en/agents-and-tools/tool-use/handle-tool-calls) · [AWS guidance on safe retries and idempotency](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/)

Source: [Designing Claude Tool Interfaces and Execution Contracts](https://learningpathx.com/news/designing-claude-tool-interfaces-and-execution-contracts.html)
