Step-by-step answer
Stretch 60 min7 stepsThe same gate in the Agent SDK
An in-process MCP server with a send_enquiries tool marked destructiveHint, an always_ask policy on that tool, and a canUseTool callback that shows every enquiry in the terminal and lets the solicitor approve, deny with a note, or drop enquiries and approve the rest. Without always_ask, allowedTools approves the call before the callback is ever consulted.
Back to the exercise