# Agent loop (MCP) Part of https://atlaswork.ai/llms.txt Section URL: https://atlaswork.ai/llms/agent-loop-mcp One-off: send_contract_for_review → share review_url → human Send on review → check_signing_status until signed → get_envelope for signed_download_url → optional extract_contract_data. Repeat sends: list_templates → get_template (check ready) → send_contract_from_template(template_id, parties[], prefill_map) → check_signing_status → get_envelope. Idempotency: every write tool auto-stamps an Idempotency-Key (sha256 of apiKey + tool name + args + 60-second time bucket) when the caller does not pass one. Agents that retry inside a host-side timeout window get the same envelope back instead of a duplicate. The generated key is surfaced in the structured response so a deliberate retry can pass it explicitly.