Menu

1 / 2

Let the agent draft, make a human send: approval gates for MCP tools that touch the real world

DEV Community: typescript·Manoj Kumar·2 days ago
#vfawHmgU
#devtotypescript#devto#dev#draft#approval
Reading 0:00
15s threshold

Read-only MCP tools are easy to trust. search_notes can't hurt anyone.

The trouble starts with tools that do things: send an email, post to a channel, refund an order, trigger a workflow. An agent that can call send_email will, sooner or later, call it with the wrong recipient, the wrong tone, or twice. Prompt instructions like "always ask before sending" help, but they live in the model's context, and anything in the context (a pasted email, a web page, a tool result) can argue with them.

The fix I keep coming back to is boring and reliable: split every side-effecting action into a draft step the agent can do and a commit step only a human can unlock.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.